conf
conf copied to clipboard
Added type switch and casting of float64 numbers to int in Int()
trafficstars
Fix issue #2
Do you know the type when you call it? I would expect people call something like conf.Float(key) instead of conf.Int(key)
Yes, the type is float64 when you unmarshal from JSON data for all numbers, both for integers and floats. I think it is correct to call conf.Int(key) if you know that it should be an integer.