We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c5ed6f commit 979dd99Copy full SHA for 979dd99
1 file changed
config.go
@@ -107,7 +107,7 @@ func ConfigValue(v interface{}, dst interface{}) error {
107
*d = int64(vt)
108
case string:
109
x, _ := strconv.ParseInt(vt, 0, 64)
110
- *d = int64(x)
+ *d = x
111
default:
112
return fmt.Errorf("unhandled type %+v for uint8 conversion", reflect.TypeOf(vt))
113
}
@@ -120,7 +120,7 @@ func ConfigValue(v interface{}, dst interface{}) error {
120
*d = vt
121
122
x, _ := strconv.ParseFloat(vt, 64)
123
- *d = float64(x)
124
125
return fmt.Errorf("unhandled type %+v for float64 conversion", reflect.TypeOf(vt))
126
0 commit comments