Documentation ¶
Index ¶
- Constants
- func Decode(encoder string, src []byte, opts ...Option) ([]byte, error)
- func DecodeString(encoder string, s string, opts ...Option) ([]byte, error)
- func Encode(encoder string, src []byte, opts ...Option) string
- func EncodeString(encoder string, src string, opts ...Option) string
- func NewEncoding(encoder string, opts ...Option) *base64.Encoding
- func NewEncodingWithPadding(encoder string, padding rune) *base64.Encoding
- type Option
- type Options
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 ¶
Click to show internal directories.
Click to hide internal directories.