Documentation ¶
Index ¶
- Constants
- func Decode(encoder string, src []byte) ([]byte, error)
- func DecodeString(encoder string, s string) ([]byte, error)
- func Encode(encoder string, src []byte) string
- func EncodeString(encoder string, src string) string
- func NewEncoding(encoder string) *base64.Encoding
- func NewEncodingWithPadding(encoder string, padding rune) *base64.Encoding
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 DecodeString ¶
DecodeString decode string with encoder
func EncodeString ¶
EncodeString encode string with encoder
func NewEncoding ¶
NewEncoding get base64 encoding with input encoder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.