base64

package
v3.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidEncoding = iota
	Std
	URL
	RawStd
	RawURL
)

Variables

This section is empty.

Functions

func Decode

func Decode(src []byte) ([]byte, error)

func DecodeString

func DecodeString(src string) ([]byte, error)

func Encode

func Encode(src []byte) []byte

func EncodeToString

func EncodeToString(src []byte) string

func EncodeUint64ToString

func EncodeUint64ToString(v uint64) string

func Guess

func Guess(src []byte) int

func SetDecoder

func SetDecoder(dec Decoder)

func SetEncoder

func SetEncoder(enc Encoder)

Types

type Decoder

type Decoder interface {
	Decode([]byte) ([]byte, error)
}

type Encoder

type Encoder interface {
	Encode([]byte, []byte)
	EncodedLen(int) int
	EncodeToString([]byte) string
}

Jump to

Keyboard shortcuts

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