[x/blog] 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>
X-Blog-Commit: 18a9253a5fd13205b04beed8e8ca009547b12c1f
1 file changed
tree: b7999f98e5dab0f7c34d66c6881573e1e08e4ff7
  1. blog/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
README.md

Go Website

This repository holds the Go Website server code and content.

Download/Install

The easiest way to install is to run go get -u golang.org/x/website. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.