Documentation ¶ Index ¶ type Data func NewBase64(src []byte) *Data func NewBase64FromString(src string) *Data func NewBase64Url(src []byte) *Data func NewBase64UrlFromString(src string) *Data func (d Data) Decode() ([]byte, error) func (d Data) DecodeString() (string, error) func (d Data) MustDecode() []byte func (d Data) MustDecodeString() string func (d Data) String() string type DataUrl func (d *DataUrl) Decode() (string, error) func (d *DataUrl) DecodeByte() ([]byte, error) func (d DataUrl) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Data ¶ type Data string Data base64编码 func NewBase64 ¶ func NewBase64(src []byte) *Data func NewBase64FromString ¶ func NewBase64FromString(src string) *Data func NewBase64Url ¶ func NewBase64Url(src []byte) *Data func NewBase64UrlFromString ¶ func NewBase64UrlFromString(src string) *Data func (Data) Decode ¶ func (d Data) Decode() ([]byte, error) func (Data) DecodeString ¶ added in v0.9.0 func (d Data) DecodeString() (string, error) func (Data) MustDecode ¶ func (d Data) MustDecode() []byte func (Data) MustDecodeString ¶ added in v0.9.0 func (d Data) MustDecodeString() string func (Data) String ¶ func (d Data) String() string type DataUrl ¶ type DataUrl string base64编码 func (*DataUrl) Decode ¶ func (d *DataUrl) Decode() (string, error) func (*DataUrl) DecodeByte ¶ func (d *DataUrl) DecodeByte() ([]byte, error) func (DataUrl) String ¶ func (d DataUrl) String() string Source Files ¶ View all Source files dbase64.go dbase64url.go Click to show internal directories. Click to hide internal directories.