package
module
Version:
v0.0.0-...-533a6ae
Opens a new window with list of versions in this module.
Published: Apr 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
func Json(v interface{}) string
Json 将v使用json.Marshal转换,忽略错误
func Ternary[T interface{}](condition bool, x, y T) T
Ternary 三元表达式,当condition成立时返回x,否则返回y
Source Files
¶
Directories
¶
|
|
|
|
Package tid 生成唯一id工具 生成规则:机器ip+进程pid+毫秒时间戳+自增序列 注意该包如果初始化失败则会直接panic
|
Package tid 生成唯一id工具 生成规则:机器ip+进程pid+毫秒时间戳+自增序列 注意该包如果初始化失败则会直接panic |
Click to show internal directories.
Click to hide internal directories.