resourceid

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[T ~string](payload any, id T) error

Decode base64-decodes and JSON unmarshals an ID into an arbitrary payload.

func Encode

func Encode[T ~string](payload any) (T, error)

Encode JSON marshals and base64-encodes an arbitrary payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL