IJsonRead支持Value, 泛读取数据
This commit is contained in:
1 parent
1124ff6a33
commit
042aad254b
3 files changed
+30
No files matched your search
@@ -31,4 +31,6 @@ type IJsonRead interface {
|
||||
Array(dataPath string) ([]any, error)
|
||||
// ArrayWithReceiver 通过指针接收
|
||||
ArrayWithReceiver(dataPath string, receiver any) error
|
||||
// Value 自适应类型数据读取
|
||||
Value(dataPath string, dataType string, defaultValue any) (any, error)
|
||||
}
|
||||