Documentation ¶
Index ¶
- func AddHex(s string) string
- func BytesToBnHex(value []byte) string
- func BytesToHex(b []byte) string
- func Debug(i interface{})
- func DecimalFromInterface(i interface{}) decimal.Decimal
- func GetEnumValue(e map[string]interface{}) (string, interface{}, error)
- func HexToBytes(s string) []byte
- func IntInSlice(a int, list []int) bool
- func IntToHex(i interface{}) string
- func IsASCII(b []byte) bool
- func IsNil(a interface{}) bool
- func ReverseBytes(a []byte) []byte
- func SliceIndex(a string, list []string) int
- func StringToInt(s string) int
- func ToString(i interface{}) string
- func TrimHex(s string) string
- func TrueOrElse(expect bool, a, b string) string
- func U256(v string) *big.Int
- func U256DecoderToBigInt(u256 string) *big.Int
- func U8Encode(i int) string
- func UniqueSlice(s []string) (list []string)
- func UnmarshalAny(raw interface{}, r interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToBnHex ¶ added in v0.7.5
func BytesToHex ¶
func DecimalFromInterface ¶ added in v1.6.12
func GetEnumValue ¶ added in v1.3.3
GetEnumValue get enum single key && value
func HexToBytes ¶
func IntInSlice ¶
func ReverseBytes ¶
func SliceIndex ¶ added in v1.0.11
func StringToInt ¶
func TrueOrElse ¶ added in v1.1.44
func U256DecoderToBigInt ¶ added in v1.9.8
func UniqueSlice ¶
func UnmarshalAny ¶ added in v1.7.0
func UnmarshalAny(raw interface{}, r interface{}) error
UnmarshalAny unmarshal any type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.