commit | 518a84bc9c8e40ed38b09dba5a981b5a5a6b6946 | [log] [tgz] |
---|---|---|
author | Kenny Grant <kennygrant@gmail.com> | Thu Oct 19 22:34:42 2017 +0100 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Oct 19 22:55:15 2017 +0000 |
tree | b7999f98e5dab0f7c34d66c6881573e1e08e4ff7 | |
parent | b7168cf5dc7b8ddbca058c0a47bf279d7f2cef47 [diff] |
[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
This repository holds the Go Website server code and content.
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
.
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.