From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- doc/articles/json_and_go.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'doc/articles/json_and_go.html') diff --git a/doc/articles/json_and_go.html b/doc/articles/json_and_go.html index af7776c0a..8c4ef33a4 100644 --- a/doc/articles/json_and_go.html +++ b/doc/articles/json_and_go.html @@ -43,7 +43,7 @@ and an instance of Message {{code "/doc/progs/json1.go" `/m :=/`}}

-we can marshal a JSON-encoded version of m using json.Marshal: +we can marshal a JSON-encoded version of m using json.Marshal:

{{code "/doc/progs/json1.go" `/b, err :=/`}} @@ -82,8 +82,8 @@ is nil).

The json package only accesses the exported fields of struct types (those that -begin with an uppercase letter). Therefore only the the exported fields of a -struct will be present in the JSON output. +begin with an uppercase letter). Therefore only the exported fields of a struct +will be present in the JSON output.

@@ -130,7 +130,7 @@ preference):