bsf

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EncodeStd    = "trellis::algo::encodeStd"
	EncodeRawStd = "trellis::algo::encodeRawStd"
	EncodeURL    = "trellis::algo::encodeURL"
	EncodeRawURL = "trellis::algo::encodeRawURL"
)

default base64 encoders

Variables

This section is empty.

Functions

func Decode

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

Decode decode bytes with encoder

func DecodeString

func DecodeString(encoder string, s string) ([]byte, error)

DecodeString decode string with encoder

func Encode

func Encode(encoder string, src []byte) string

Encode encode bytes with encoder

func EncodeString

func EncodeString(encoder string, src string) string

EncodeString encode string with encoder

func NewEncoding

func NewEncoding(encoder string) *base64.Encoding

NewEncoding get base64 encoding with input encoder

func NewEncodingWithPadding

func NewEncodingWithPadding(encoder string, padding rune) *base64.Encoding

NewEncodingWithPadding get encoding with encoder and padding

Types

This section is empty.

Jump to

Keyboard shortcuts

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