package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Feb 25, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
EnsureJSON 辅助函数:确保字符串是有效的JSON格式
func PrettyJSON(v interface{})
PrettyJSON 美化打印
StrTI64 全数字字符串转int64 (注:非全数字不能使用此函数,因忽略err)
func Ternary[T any](condition bool, value1, value2 T) T
Ternary 三元运算符的模拟函数
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.