Documentation ¶
Index ¶
- func BinToDec(bin string) int64
- func BinToHex(bin string) string
- func BytesEncodeHex(bytes []byte) string
- func BytesEncodeHexs(bytes []byte) []byte
- func BytesToFloat64(bytes []byte) float64
- func BytesToInt64(bytes []byte) int64
- func BytesToRunes(bytes []byte) []rune
- func BytesToUint64(bytes []byte) uint64
- func DecToBin(dec int64) string
- func DecToHex(dec int64) string
- func Float64ToBytes(f float64) []byte
- func HexDecodeBytes(h string) []byte
- func HexToBin(hex string) string
- func HexToDec(hex string) int64
- func HexsDecodeBytes(hs []byte) []byte
- func Int64ToBytes(i int64) []byte
- func RunesToBytes(runes []rune) []byte
- func StructToInterfaceMap(s interface{}, ignoreZeroValue ...bool) map[string]interface{}
- func StructToStringMap(s interface{}, ignoreZeroValue ...bool) map[string]string
- func ToBase(src string, fromBase, toBase int) string
- func ToBool(src interface{}) bool
- func ToFloat(src interface{}) float64
- func ToFloat32(src interface{}) float32
- func ToFloat64(src interface{}) float64
- func ToInt(src interface{}) int
- func ToInt32(src interface{}) int32
- func ToInt64(src interface{}) int64
- func ToString(src interface{}) string
- func ToUint(src interface{}) uint
- func ToUint32(src interface{}) uint32
- func ToUint64(src interface{}) uint64
- func Uint64ToBytes(i uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesEncodeHex ¶
BytesEncodeHex returns the hexadecimal encoding string result of byte slice bytes.
func BytesEncodeHexs ¶
BytesEncodeHexs returns the hexadecimal encoding byte slice result of byte slice bytes.
func BytesToFloat64 ¶
BytesToFloat64 returns the float64 result converted by byte slice bytes.
func BytesToInt64 ¶
BytesToInt64 returns the int64 result converted by byte slice bytes.
func BytesToRunes ¶
BytesToRunes returns the rune slice result converted by byte slice bytes.
func BytesToUint64 ¶
BytesToUint64 returns the uint64 result converted by byte slice bytes.
func Float64ToBytes ¶
Float64ToBytes returns the byte slice result converted by float64 f.
func HexDecodeBytes ¶
HexDecodeBytes returns the byte slice result represented by the hexadecimal string h.
func HexsDecodeBytes ¶
HexsDecodeBytes returns the byte slice result represented by the hexadecimal byte slice hs.
func Int64ToBytes ¶
Int64ToBytes returns the byte slice result converted by int64 i.
func RunesToBytes ¶
RunesToBytes returns the byte slice result converted by rune slice runes.
func StructToInterfaceMap ¶
StructToInterfaceMap returns the map[string]interface{} result converted by struct s.
func StructToStringMap ¶
StructToStringMap returns the map[string]string result converted by struct s.
func ToFloat ¶
func ToFloat(src interface{}) float64
ToFloat returns the float64 result converted by src.
func ToFloat32 ¶
func ToFloat32(src interface{}) float32
ToFloat32 returns the float32 result converted by src.
func ToFloat64 ¶
func ToFloat64(src interface{}) float64
ToFloat64 returns the float64 result converted by src.
func ToInt32 ¶
func ToInt32(src interface{}) int32
ToInt32 returns the int32 result converted by src.
func ToInt64 ¶
func ToInt64(src interface{}) int64
ToInt64 returns the int64 result converted by src.
func ToString ¶
func ToString(src interface{}) string
ToString returns the string result converted by src.
func ToUint32 ¶
func ToUint32(src interface{}) uint32
ToUint32 returns the uint32 result converted by src.
func ToUint64 ¶
func ToUint64(src interface{}) uint64
ToUint64 returns the uint64 result converted by src.
func Uint64ToBytes ¶
Uint64ToBytes returns the byte slice result converted by uint64 i.
Types ¶
This section is empty.