dbase64

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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