Documentation ¶
Index ¶
- func AppendUnique(list []string, element string) []string
- func BytesArrToStringArr(val []byte) ([]string, error)
- func BytesFromBase64(str string) []byte
- func BytesFromHex(str string) []byte
- func BytesToBase64(bytes []byte) string
- func BytesToHex(bytes []byte) string
- func BytesToString(val []byte) string
- func GetCid(content []byte) (string, error)
- func Int64ToBytes(num int64) []byte
- func MarshalMapToJSONBytes(val map[string]interface{}) (bytes []byte)
- func SetToSlice(set set.Set) []string
- func SliceToSet(names []string) set.Set
- func StrArrToBytesArr(val []string) ([]byte, error)
- func StringToBytes(val string) []byte
- func UnMarshalMapFromJSONBytes(bytes []byte) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func BytesArrToStringArr ¶
func BytesFromBase64 ¶
BytesFromBase64 decodes a byte array from a base64 string.
func BytesFromHex ¶
BytesFromHex decodes a byte array from a hex string.
func BytesToBase64 ¶
BytesToBase64 encodes a byte array as a base64 string.
func BytesToHex ¶
BytesToHex encodes a byte array as a hex string.
func BytesToString ¶
func Int64ToBytes ¶
func MarshalMapToJSONBytes ¶
MarshalMapToJSONBytes converts map[string]interface{} to bytes.
func SetToSlice ¶
func SliceToSet ¶
func StrArrToBytesArr ¶
func StringToBytes ¶
func UnMarshalMapFromJSONBytes ¶
UnMarshalMapFromJSONBytes converts bytes to map[string]interface{}.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.