Documentation ¶
Index ¶
- Constants
- func Any2String(i interface{}) string
- func CheckFileExist(fileName string) bool
- func Compressed(cache string) []byte
- func Decompress(data []byte) string
- func DeepCopy(dst, src interface{}) error
- func FileRead(fileName string) ([]byte, error)
- func FileWrite(fileName string, data []byte)
- func GetIp() (string, error)
- func GetLocalIP() (string, error)
- func GobDecoder(data []byte) (res string)
- func GobEncodeStr(data string) []byte
- func ID64() (int64, error)
- func IDStr() string
- func Int642Str(i int64) string
- func LocalIPv4s() ([]string, error)
- func MD5(str string) string
- func P2E()
- func RandInt(min, max int) int
- func SliceDelNullString(sli []string) []string
- func Str2Bool(str string) bool
- func Str2Float64(str string) float64
- func Str2Int(str string) int
- func Str2Int32(str string) int32
- func Str2Int64(str string) int64
- func Str2Timestamp(str string) int64
- func Str2TimestampStr(str string) string
- func Timestamp2Time(timestamp int64, layout string) string
- type IdWorker
Constants ¶
View Source
const Logo = `` /* 166-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GobDecoder ¶
func LocalIPv4s ¶
LocalIPs return all non-loopback IPv4 addresses
func Str2TimestampStr ¶
func Timestamp2Time ¶
Timestamp2Time 时间戳到时间 use : Timestamp2Time(time.Now().Unix(), "20060102 15:04:05")
Types ¶
Click to show internal directories.
Click to hide internal directories.