Philipp15b / go-steamapi

Steam Web API in Go.
http://godoc.org/github.com/Philipp15b/go-steamapi
MIT License
93 stars 28 forks source link

I remember why I ignored the decode error #6

Closed vincentserpoul closed 8 years ago

vincentserpoul commented 8 years ago

Attribute values are not always int, generating an error. Ignoring the error just make things simple, but not ideal. I went one step further and turned it into an interface.

If you have a better idea, let me know!

Philipp15b commented 8 years ago

What other values are there then? Maybe there are just int64s encoded as strings? That we could decode directly into an int64.

vincentserpoul commented 8 years ago

Unfortunately not :/, it's either int or real strings (see the test I changed for an example)

Philipp15b commented 8 years ago

That makes sense. Thank you!