base64Kit

package
v2.1.25 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decode func(data []byte) ([]byte, error) = gbase64.Decode
View Source
var DecodeString func(data string) ([]byte, error) = gbase64.DecodeString
View Source
var DecodeToString func(data string) (string, error) = gbase64.DecodeToString
View Source
var EncodeString func(src string) string = gbase64.EncodeString
View Source
var EncodeToString func(src []byte) string = gbase64.EncodeToString

Functions

func Encode

func Encode(src []byte) []byte

func EncodeFile

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

EncodeFile

@param path 文件路径(不支持目录路径)

func EncodeFileToString

func EncodeFileToString(path string) (string, error)

EncodeFileToString 文件 => base64字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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