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-by: Ian Lance Taylor <>
1 file changed
tree: 693b6f42fa1d96a36a498e3ece1929573b6f95ed
  1. blog/
  2. content/
  3. static/
  4. support/
  5. template/
  6. .gitattributes
  7. .gitignore
  8. app.yaml
  10. codereview.cfg

Go Blog

This repository holds the Go Blog server code and content.


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

Running Locally

To run the blog server locally:

go build -o blog.exe ./blog

and then visit http://localhost:8080/ in your browser.

Note that blog.exe caches all content and you must kill it (Ctrl-C on Unix systems) and restart it after editing any files to view changes.


Articles on the blog should have broad interest to the Go community, and are mainly written by Go contributors. We encourage you to share your experiences using Go on your own website, and to share them with the Go community. Hugo is a static site server written in Go that makes it easy to write and share your stories.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the blog is located at Prefix your issue with “blog:” in the subject line, so it is easy to find.