Versions in this module Expand all Collapse all v1 v1.0.2 Mar 9, 2022 Changes in this version + func Bytes2Hexstring(bs []byte, upper bool) string + func Bytes2Ip(bs []byte) net.IP + func Bytes2Ipstring(bs []byte) string + func Bytes2String(bs []byte) string + func Bytes2Timestr(bs []byte, fmt string) string + func Bytes2Uint16(bs []byte) uint16 + func Bytes2Uint32(bs []byte) uint32 + func Bytes2Uint64(bs []byte) uint64 + func CompareNoCaseString(s1 string, s2 string) int + func FlipBytes(bs []byte) []byte + func Hexstring2Bytes(hexstring string) []byte + func Ip2Bytes(ip net.IP) []byte + func Ip2Ipstring(ip net.IP) string + func IpEqual(ip1 net.IP, ip2 net.IP) bool + func IpVersion(ip net.IP) int + func Ipstring2Bytes(ipstr string) []byte + func Ipstring2Ip(ipstr string) net.IP + func IpstringEqual(ip1 string, ip2 string) bool + func Nanosecond2Time(nanosecond int64) time.Time + func Second2Time(second int64) time.Time + func Second2Timestr(second int64, fmt string) string + func String2Bytes(str string) []byte + func StringDelSpace(str string) string + func StringTrim(str string) string + func StringTrimLeft(str string) string + func StringTrimRight(str string) string + func Time2Nanosecond(t time.Time) int64 + func Time2Second(t time.Time) int64 + func Time2Timestr(t time.Time, fmt string) string + func Timestr2Bytes(timestr string, fmt string) [4]byte + func Timestr2Second(timestr string, fmt string) int + func Timestr2Time(timestr string, fmt string) time.Time + func Uint162Bytes(x uint16) [2]byte + func Uint322Bytes(x uint32) [4]byte + func Uint642Bytes(x uint64) [8]byte + func UnwrapIp(ipstr string) string + func WrapIp(ipstr string) string + type ResultInfo struct + Ret string + RetData interface{} + RetMsg string