Documentation ¶
Index ¶
- func Atoi(s string) int
- func Atoi64(s string) int64
- func Atou(s string) uint64
- func ContainsInt32(slice []int32, i int32) bool
- func DayCount(a time.Time, b time.Time) int
- func GenUniqueId() int64
- func GetCurrentMS() int64
- func GetCurrentTimeStamp() uint32
- func GetMessageIdByComponentMessageName(packageName, componentStructName, messageName string) int32
- func GetMessageIdByMessageName(packageName, componentStructName, messageName string) int32
- func HasString(slice []string, s string) bool
- func IndexString(slice []string, s string) int
- func InitIdGenerator(workerId uint16)
- func IsNil(i interface{}) bool
- func Itoa(i interface{}) string
- func ToDate(t time.Time) time.Time
- func ToDateInt(t time.Time) int32
- func ToString(i interface{}) (string, error)
- func ToStringWithoutError(i interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt32 ¶
func GetMessageIdByComponentMessageName ¶
根据组件名和消息名获取对应的消息号 packageName是*.proto文件里定义的package名
func GetMessageIdByMessageName ¶
根据消息名获取对应的消息号 packageName是*.proto文件里定义的package名
func IndexString ¶
func InitIdGenerator ¶
func InitIdGenerator(workerId uint16)
func ToStringWithoutError ¶ added in v1.1.0
func ToStringWithoutError(i interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.