1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-02 15:54:32 +00:00

add float

This commit is contained in:
Aiwantaozi
2018-10-13 08:57:50 +08:00
committed by orangedeng
parent 17430d760a
commit 1883e14f29
2 changed files with 26 additions and 0 deletions

View File

@@ -327,6 +327,8 @@ func ConvertSimple(fieldType string, value interface{}, op Operation) (interface
return convert.ToString(value), nil
case "int":
return convert.ToNumber(value)
case "float":
return convert.ToFloat(value)
case "password":
return convert.ToString(value), nil
case "string":