增加三元运算法支持

This commit is contained in:
2023-11-28 16:27:31 +08:00
parent 1b71c40d14
commit e7417048fb
2 changed files with 182 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func ObjectData(data interface{}) *ObjectType {
case reflect.Struct:
ot.byteData, _ = json.Marshal(ot.source)
default:
// 数据类型不是 nil / map / struct 质疑
// 数据类型不是 nil / map / struct 之一
ot.isValid = false
}
return ot