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 DecodeJSON ¶
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 ¶
FromBase64URL decodes a base64 URL-safe string to binary data.
func ToBase64URL ¶
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.