Documentation
¶
Overview ¶
base64 supports Base64 encoding and decoding.
Index ¶
- func DecodeGunzip(encoded string) ([]byte, error)
- func DecodeGunzipJSON(encoded string, output interface{}) error
- func EncodeGzip(data []byte, compressLevel int) string
- func EncodeGzipJSON(data interface{}, compressLevel int) (string, error)
- func Pad(encoded string) string
- func StripPadding(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGunzip ¶ added in v1.0.1
DecodeGunzip base64 decodes a string with optional gzip uncompression.
func DecodeGunzipJSON ¶ added in v1.0.1
DecodeGunzipJSON base64 decodes a string with optoinal gunzip uncompression and then unmarshals the data to a struct.
func EncodeGzip ¶ added in v1.0.1
Encode with optional gzip compression. 0 = no compession. 9 = best compression.
func EncodeGzipJSON ¶ added in v1.0.1
EncodeGzipJSON encodes a struct that is JSON encoded.
func StripPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.