mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-28 17:01:02 +02:00
Add support to return int based value from native functions golang implementations
This commit is contained in:
parent
4df8c17aa3
commit
772ebba669
@ -949,6 +949,8 @@ func jsonToValue(i *interpreter, v interface{}) (value, error) {
|
||||
|
||||
case bool:
|
||||
return makeValueBoolean(v), nil
|
||||
case int, int8, int16, int32, int64:
|
||||
return makeDoubleCheck(i, v.(float64))
|
||||
case float64:
|
||||
return makeDoubleCheck(i, v)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user