增加基于gsjon实现的JsonRead

This commit is contained in:
2025-05-06 11:51:50 +08:00
parent 761058f8fe
commit 8489acbef8
2 changed files with 124 additions and 2 deletions

View File

@ -13,10 +13,12 @@ type IJsonRead interface {
Exist(dataPath string) bool
// IsNil 指定路径是否为nil
IsNil(dataPath string) bool
// Type 路径数据类型
Type(dataPath string) string
// Int 转换为int类型
Int(dataPath string) (int, error)
Int(dataPath string) (int64, error)
// Uint 转换为uint类型
Uint(dataPath string) (uint, error)
Uint(dataPath string) (uint64, error)
// Float 转换为float类型
Float(dataPath string) (float64, error)
// String 转换为string类型