helper

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode added in v0.2.6

func Base64Decode(s string) ([]byte, error)

decodes base64 string to bytes

func Base64DecodeAndGunzipIf added in v0.2.6

func Base64DecodeAndGunzipIf(b64 string, compressed bool) ([]byte, error)

base64 decode + gunzip if compressed

func Base64Encode added in v0.2.6

func Base64Encode(data []byte) string

returns base64-encoded string of data

func ConvertBodyToSnakeCase

func ConvertBodyToSnakeCase(test map[string]interface{}) map[string]interface{}

func GzipAndBase64 added in v0.2.6

func GzipAndBase64(data []byte, level int) (string, error)

gzip + base64. returns b64 string

func GzipAndBase64Best added in v0.2.6

func GzipAndBase64Best(data []byte) (string, error)

gzip bestcompression + base64. returns b64 string

func GzipCompress added in v0.2.6

func GzipCompress(data []byte, level int) ([]byte, error)

compresses the given data

func GzipDecompress added in v0.2.6

func GzipDecompress(data []byte) ([]byte, error)

decompresses gzip-compressed bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL