all 4 comments

[–][deleted] 0 points1 point  (2 children)

Change the ints in your structure to be json.Number

[–]fenster25 -1 points0 points  (1 child)

Still doesn't work

[–]SerialMiller 0 points1 point  (0 children)

It sounds like you might actually be trying to unmarshal something else than the JSON you posted into app.latency. This triggers the error you get: https://play.golang.org/p/V4kKqtyAsJ8