Documentation
¶
Overview ¶
Package bytesutil provides utility functions for byte slice operations.
Index ¶
- func FromBase32Raw(s string) ([]byte, error)
- func FromBase64(s string) ([]byte, error)
- func FromBase64URLRaw(s string) ([]byte, error)
- func FromGob[T any](gobBytes []byte) (T, error)
- func FromGobInto(gobBytes []byte, destPtr any) error
- func ToBase32Raw(b []byte) string
- func ToBase64(b []byte) string
- func ToBase64URLRaw(b []byte) string
- func ToGob(src any) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBase32Raw ¶
FromBase32Raw decodes a base32-encoded string into a byte slice without padding.
func FromBase64 ¶
FromBase64 decodes a base64-encoded string into a byte slice.
func FromBase64URLRaw ¶
FromBase64URLRaw decodes a base64 URL-safe encoded string into a byte slice without padding.
func FromGobInto ¶
FromGobInto decodes a gob-encoded byte slice into a destination. The destination must be a pointer to the destination type.
func ToBase32Raw ¶
ToBase32Raw encodes a byte slice into a base32-encoded string without padding.
func ToBase64URLRaw ¶
ToBase64URLRaw encodes a byte slice into a base64 URL-safe encoded string without padding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.