gf: github.com/gogf/gf/encoding/gbase64 Index | Files

package gbase64

import "github.com/gogf/gf/encoding/gbase64"

Package gbase64 provides useful API for BASE64 encoding/decoding algorithm.

Index

Package Files

gbase64.go

func Decode Uses

func Decode(data []byte) ([]byte, error)

Decode decodes bytes with BASE64 algorithm.

func DecodeString Uses

func DecodeString(data string) ([]byte, error)

DecodeString decodes string with BASE64 algorithm.

func DecodeToString Uses

func DecodeToString(data string) (string, error)

DecodeString decodes string with BASE64 algorithm.

func Encode Uses

func Encode(src []byte) []byte

Encode encodes bytes with BASE64 algorithm.

func EncodeFile Uses

func EncodeFile(path string) ([]byte, error)

EncryptFile encodes file content of <path> using BASE64 algorithms.

func EncodeFileToString Uses

func EncodeFileToString(path string) (string, error)

EncodeFileToString encodes file content of <path> to string using BASE64 algorithms.

func EncodeString Uses

func EncodeString(src string) string

EncodeString encodes string with BASE64 algorithm.

func EncodeToString Uses

func EncodeToString(src []byte) string

EncodeToString encodes bytes to string with BASE64 algorithm.

func MustDecode Uses

func MustDecode(data []byte) []byte

MustDecode decodes bytes with BASE64 algorithm. It panics if any error occurs.

func MustDecodeString Uses

func MustDecodeString(data string) []byte

MustDecodeString decodes string with BASE64 algorithm. It panics if any error occurs.

func MustDecodeToString Uses

func MustDecodeToString(data string) string

MustDecodeToString decodes string with BASE64 algorithm. It panics if any error occurs.

func MustEncodeFile Uses

func MustEncodeFile(path string) []byte

MustEncodeFile encodes file content of <path> using BASE64 algorithms. It panics if any error occurs.

func MustEncodeFileToString Uses

func MustEncodeFileToString(path string) string

MustEncodeFileToString encodes file content of <path> to string using BASE64 algorithms. It panics if any error occurs.

Package gbase64 imports 3 packages (graph) and is imported by 3 packages. Updated 2020-03-23. Refresh now. Tools for package owners.