Documentation ¶
Index ¶
- func Base64UrlDecoding(src string) ([]byte, error)
- func Base64UrlEncoding(src string) string
- func DecodeBase64FromString(data string) ([]byte, error)
- func DecodeFromCSVFile(sourceCSVFile string) (records [][]string, err error)
- func DecodeFromJsonFile(sourceJsonFile string, v interface{}) error
- func DecodeFromYamlFile(sourceYamlFile string, v interface{}) error
- func DecodeHex(dst, src []byte) (int, error)
- func DecodeHexFromString(hexStr string) ([]byte, error)
- func EncodeBase64ToString(src string) string
- func EncodeHex(dst, src []byte) int
- func EncodeHexToString(src []byte) string
- func EncodeToCSVFile(data [][]string, targetCSVFile string) error
- func EncodeToJsonFile(data interface{}, targetJsonFile string) error
- func EncodeToYamlFile(data interface{}, targetYamlFile string) error
- func JsonMarshalToString(data interface{}) (string, error)
- func JsonUnMarshalFromString(jsonStr string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64UrlEncoding ¶
用于URL参数传输时的编解码,如果要用在url中,需要使用URLEncoding
func DecodeFromCSVFile ¶
func DecodeFromJsonFile ¶
解码json文件到go数据类型
func DecodeFromYamlFile ¶
解码Yaml文件到go数据类型
func DecodeHexFromString ¶
返回hex编码的字符串hexStr解码的数据,入参字符串需事先被hex编码过
func EncodeToCSVFile ¶
func EncodeToJsonFile ¶
编码go数据类型到json文件
func EncodeToYamlFile ¶
编码go数据类型到Yaml文件
func JsonMarshalToString ¶
go数据类型序列化为json字符串
func JsonUnMarshalFromString ¶
json字符串反序列化为go数据类型
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.