|author||Kenny Grant <email@example.com>||Thu Oct 19 22:34:42 2017 +0100|
|committer||Ian Lance Taylor <firstname.lastname@example.org>||Thu Oct 19 22:55:15 2017 +0000|
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 <email@example.com>
This repository holds the Go Blog server code and content.
The easiest way to install is to run
go get -u golang.org/x/blog. You can also manually git clone the repository to $GOPATH/src/golang.org/x/blog.
To run the blog server locally:
go build -o blog.exe ./blog ./blog.exe
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.
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 blog is located at https://github.com/golang/go/issues. Prefix your issue with “blog:” in the subject line, so it is easy to find.