Documentation ¶
Overview ¶
base62 supports Base62 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(encoded string) string
- func ValidBase62(encoded string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGunzip ¶
DecodeGunzip base62 decodes a string with optional gzip uncompression.
func DecodeGunzipJSON ¶
DecodeGunzipJSON base62 decodes a string with optoinal gunzip uncompression and then unmarshals the data to a struct.
func EncodeGzip ¶
Encode with optional gzip compression. 0 = no compression. 9 = best compression. Currently, compression is disabled as github.com/lytics/base62 does not appear to support it properly.
func EncodeGzipJSON ¶
EncodeGzipJSON encodes a struct that is JSON encoded.
func StripPadding ¶
func ValidBase62 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.