优化自动生成json #3

Merged
zhangdeman merged 24 commits from feature/tree into master 2023-05-05 16:10:39 +08:00
2 changed files with 7 additions and 1 deletions
6130732a90 增加number / double支持
白茶清欢
2023-05-04 18:04:47 +08:00
Commit 19 of 24
Show all commits

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ const (
DataTypeFloat32 = "float32"
DataTypeFloat64 = "float64"
DataTypeDouble = "float64"
DataTypeDouble = "double"
DataTypeFloat = "float"
DataTypeIntSlice = "[]int"
+6
View File
@@ -220,6 +220,12 @@ func (f *filter) getValue(dataType string, sourceValue gjson.Result, defaultValu
case DataTypeFloat32:
fallthrough
case DataTypeFloat64:
fallthrough
case DataTypeFloat:
fallthrough
case DataTypeDouble:
fallthrough
case DataTypeNumber:
var (
err error
val float64
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.