Documentation
¶
Index ¶
- func Base64Decode(s string) ([]byte, error)
- func Base64DecodeAndGunzipIf(b64 string, compressed bool) ([]byte, error)
- func Base64Encode(data []byte) string
- func ConvertBodyToSnakeCase(test map[string]interface{}) map[string]interface{}
- func GzipAndBase64(data []byte, level int) (string, error)
- func GzipAndBase64Best(data []byte) (string, error)
- func GzipCompress(data []byte, level int) ([]byte, error)
- func GzipDecompress(data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶ added in v0.2.6
decodes base64 string to bytes
func Base64DecodeAndGunzipIf ¶ added in v0.2.6
base64 decode + gunzip if compressed
func Base64Encode ¶ added in v0.2.6
returns base64-encoded string of data
func ConvertBodyToSnakeCase ¶
func GzipAndBase64 ¶ added in v0.2.6
gzip + base64. returns b64 string
func GzipAndBase64Best ¶ added in v0.2.6
gzip bestcompression + base64. returns b64 string
func GzipCompress ¶ added in v0.2.6
compresses the given data
func GzipDecompress ¶ added in v0.2.6
decompresses gzip-compressed bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.