Documentation ¶
Index ¶
- func BitClear[T Int](val T, position int) T
- func BitSet[T Int](val T, position int) T
- func FormatGroupRoomID(groupID int64) string
- func FormatPrivateRoomID(userAID, userBID int64) string
- func FormatWorldRoomID(worldID int64) string
- func IntBetween[T Int](dest, from, to T) bool
- func IntLen[T Int](val T) int
- func PasswordHash(pwd string) string
- func SortInt[T Int](a T, b T) (T, T)
- func StringCut(data string, limit int) string
- func StringLen(data string) int
- func UUID() string
- type Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPrivateRoomID ¶
FormatPrivateRoomID 格式化私人聊天室房间号
func FormatWorldRoomID ¶ added in v1.0.3
FormatWorldRoomID 格式化世界聊天室房间号
func IntBetween ¶
IntBetween dest在指定范围内 是一个闭区间 from <= dest <= to
Types ¶
Click to show internal directories.
Click to hide internal directories.