int is fun and requires a returned int64 due to code in parseFlags
This commit is contained in:
parent
f351698afa
commit
bbd6299e53
@ -46,7 +46,7 @@ func getEnv[t string | bool | int | int64 | float64](env string, def t) (t, erro
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return (interface{})(int(0)).(t), err
|
return (interface{})(int(0)).(t), err
|
||||||
}
|
}
|
||||||
output = (interface{})(v.(int)).(t)
|
output = (interface{})(int(v.(int64))).(t)
|
||||||
case int64:
|
case int64:
|
||||||
v, err := typeConversion("int64", val)
|
v, err := typeConversion("int64", val)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user