base64

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: 0BSD Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NoPadding rune = -1
View Source
const StdPadding rune = 61

Variables

This section is empty.

Functions

This section is empty.

Types

type CorruptInputError

type CorruptInputError int64

func (CorruptInputError) Error

func (CorruptInputError) Error() string

type Encoding

type Encoding struct {
	// contains filtered or unexported fields
}
var RawStdEncoding *Encoding
var RawURLEncoding *Encoding
var StdEncoding *Encoding
var URLEncoding *Encoding

func NewEncoding

func NewEncoding(encoder string) *Encoding

func (*Encoding) AppendDecode

func (*Encoding) AppendDecode(dst []byte, src []byte) ([]byte, error)

func (*Encoding) AppendEncode

func (*Encoding) AppendEncode(dst []byte, src []byte) []byte

func (*Encoding) Decode

func (*Encoding) Decode(dst []byte, src []byte) (n int, err error)

func (*Encoding) DecodeString

func (*Encoding) DecodeString(s string) ([]byte, error)

func (*Encoding) DecodedLen

func (*Encoding) DecodedLen(n int) int

func (*Encoding) Encode

func (*Encoding) Encode(dst []byte, src []byte)

func (*Encoding) EncodeToString

func (*Encoding) EncodeToString(src []byte) string

func (*Encoding) EncodedLen

func (*Encoding) EncodedLen(n int) int

func (Encoding) Strict

func (Encoding) Strict() *Encoding

func (Encoding) WithPadding

func (Encoding) WithPadding(padding rune) *Encoding

Jump to

Keyboard shortcuts

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