优化自动生成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
Showing only changes of commit 6130732a90 - Show all commits

View File

@ -30,7 +30,7 @@ const (
DataTypeFloat32 = "float32"
DataTypeFloat64 = "float64"
DataTypeDouble = "float64"
DataTypeDouble = "double"
DataTypeFloat = "float"
DataTypeIntSlice = "[]int"

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