bbkane / warg

Declarative and Intuitive Command Line Apps with Go
https://pkg.go.dev/go.bbkane.com/warg
MIT License
16 stars 0 forks source link

Use Decoder.UseNumber() to make JSON -> Int config parsing easier? #38

Closed bbkane closed 1 year ago

bbkane commented 1 year ago

See https://pkg.go.dev/encoding/json#Decoder.UseNumber and https://stackoverflow.com/a/16946478/2958070 . Then I wouldn't have my contained.Int just truncate floats...