增加生成新节点的方法
This commit is contained in:
@ -27,6 +27,8 @@ const (
|
||||
const (
|
||||
// ValueTypeString 字符串类型
|
||||
ValueTypeString = "string"
|
||||
// ValueTypeBool bool类型
|
||||
ValueTypeBool = "bool"
|
||||
// ValueTypeInteger int类型
|
||||
ValueTypeInteger = "int64"
|
||||
// ValueTypeFloat float类型
|
||||
@ -36,3 +38,12 @@ const (
|
||||
// ValueTypeArray 数组
|
||||
ValueTypeArray = "array"
|
||||
)
|
||||
|
||||
// isBaseDataType 是否为基础数据类型
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 23:16 2023/3/28
|
||||
func isBaseDataType(valueType string) bool {
|
||||
return valueType != ValueTypeArray && valueType != ValueTypeMap
|
||||
}
|
||||
|
Reference in New Issue
Block a user