stretchr / objx

Go package for dealing with maps, slices, JSON and other data.
MIT License
695 stars 75 forks source link

Changing Int() to Float64() #19

Closed shilpi230 closed 6 years ago

shilpi230 commented 8 years ago

The "age" value is not an Integer, it is a Float64. Converting to Int() gives 0, for any number. Converting with Float64() gave the appropriate '30' value.

hanzei commented 6 years ago

The documentation is correct. `Int()* should return an int. There is a bug which is going to get traced via #22