Documentation
¶
Index ¶
- func A2B(v string) (bool, error)
- func A2F(v string) (float64, error)
- func A2I(v string) (int64, error)
- func A2Ui(v string) (uint64, error)
- func B2a(v bool) string
- func Decode(b []byte, e interface{}) error
- func DecodeUnGzip(b []byte, e interface{}) error
- func Encode(e interface{}) ([]byte, error)
- func EncodeGZip(e interface{}) ([]byte, error)
- func F2a(v float64) string
- func I2a(v int64) string
- func LocalhostIP() (string, error)
- func NowInMillisecond() int64
- func TypeName(t reflect.Type) string
- func Ui2a(v uint64) string
- func Uint16ToByteArray(num uint16) []byte
- func Uint32ToByteArray(num uint32) []byte
- func Uint64ToByteArray(num uint64) []byte
- type IDGen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NowInMillisecond ¶
func NowInMillisecond() int64
NowInMillisecond return time now in Millisecond
func Uint16ToByteArray ¶
Uint16ToByteArray 将uint16转为[]byte
func Uint32ToByteArray ¶
Uint32ToByteArray 将uint32转为[]byte
func Uint64ToByteArray ¶
Uint64ToByteArray 将uint64转为[]byte
Types ¶
Click to show internal directories.
Click to hide internal directories.