aboutsummaryrefslogtreecommitdiff
path: root/blog/local.go
diff options
context:
space:
mode:
authorKenny Grant <kennygrant@gmail.com>2017-10-19 22:34:42 +0100
committerIan Lance Taylor <iant@golang.org>2017-10-19 22:55:15 +0000
commit18a9253a5fd13205b04beed8e8ca009547b12c1f (patch)
tree693b6f42fa1d96a36a498e3ece1929573b6f95ed /blog/local.go
parentcb957aeb908c327744e5e67c58e4cbd7c52b544f (diff)
blog: Fix Decoding arbitrary data example
The example on the blog post json-and-go describes decoding arbitrary data, but instead of switching on the default concrete type for numbers - float64, it looks for int, making it print: is of a type I don't know how to handle. This change looks for float64 instead of int. Change-Id: I86825003893216dd52212d7f75239ec57770a83b Reviewed-on: https://go-review.googlesource.com/71930 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'blog/local.go')
0 files changed, 0 insertions, 0 deletions