encoding

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base32Decode

func Base32Decode(str string) ([]byte, error)

func Base32Encode

func Base32Encode(data string) string

func Base64Decode

func Base64Decode(str string) ([]byte, error)

func Base64Encode

func Base64Encode(data []byte) string

func HexDecode

func HexDecode(str string) ([]byte, error)

func HexEncode

func HexEncode(data []byte) string

func JsonDecode

func JsonDecode(buf []byte, m interface{}) error

func JsonEncode

func JsonEncode(m interface{}) (buf []byte, err error)

func JsonHexEncode

func JsonHexEncode(structObj interface{}) (error, string)

func ReadFileJsonToObject added in v1.0.0

func ReadFileJsonToObject(filename string, obj interface{}) error

func WriteToFileAsJson added in v1.0.0

func WriteToFileAsJson(filename string, v interface{}, indent string, truncateIfExist bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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