Documentation
¶
Index ¶
- func DecodeGob(data []byte, result any) error
- func DecodeJson(value string, result any) error
- func DecodeXml(value string, result any) error
- func FromBase64(s string) ([]byte, error)
- func FromBase64Url(s string) ([]byte, error)
- func FromGob[T any](data []byte) (*T, error)
- func FromHex(s string) ([]byte, error)
- func FromJson[T any](value string) (*T, error)
- func FromXml[T any](value string) (*T, error)
- func ToBase64(data []byte) string
- func ToBase64Url(data []byte) string
- func ToGob(value any) ([]byte, error)
- func ToHex(data []byte) string
- func ToJson(value any) (string, error)
- func ToXml(value any) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGob ¶ added in v0.7.1
DecodeGob decodes a GOB byte slice into the provided result pointer.
func DecodeJson ¶ added in v0.7.1
DecodeJson decodes a JSON string into the provided result pointer.
func FromBase64 ¶
FromBase64 decodes a base64 string to binary data using standard encoding.
func FromBase64Url ¶ added in v0.7.1
FromBase64Url decodes a base64 URL-safe string to binary data.
func ToBase64Url ¶ added in v0.7.1
ToBase64Url encodes binary data to a base64 URL-safe string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.