base64

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

base64 supports Base64 encoding and decoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGunzip added in v1.0.1

func DecodeGunzip(encoded string) ([]byte, error)

DecodeGunzip base64 decodes a string with optional gzip uncompression.

func DecodeGunzipJSON added in v1.0.1

func DecodeGunzipJSON(encoded string, output interface{}) error

DecodeGunzipJSON base64 decodes a string with optoinal gunzip uncompression and then unmarshals the data to a struct.

func EncodeGzip added in v1.0.1

func EncodeGzip(data []byte, compressLevel int) string

Encode with optional gzip compression. 0 = no compession. 9 = best compression.

func EncodeGzipJSON added in v1.0.1

func EncodeGzipJSON(data interface{}, compressLevel int) (string, error)

EncodeGzipJSON encodes a struct that is JSON encoded.

func Pad added in v1.0.1

func Pad(encoded string) string

func StripPadding

func StripPadding(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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