Documentation
¶
Overview ¶
Package base64 provides encoding helpers and adapters used by go-service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode decodes a standard base64-encoded string s into a byte slice.
This helper uses base64.StdEncoding. It allocates a destination buffer sized to the maximum decoded length, then returns the subslice actually written.
It returns a non-nil error if s contains invalid base64 data.
func Encode ¶
Encode encodes src using standard base64 encoding (RFC 4648) and returns the encoded string.
This helper uses base64.StdEncoding and allocates a new buffer sized to the encoded output.
func EncodedLen ¶ added in v2.457.0
EncodedLen returns the length in bytes of the standard base64 encoding of size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.