]> Cypherpunks repositories - gostls13.git/commit
encoding/json: add an example for RawMessage
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 2 Oct 2013 22:52:18 +0000 (08:52 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 2 Oct 2013 22:52:18 +0000 (08:52 +1000)
commit0857045818d7cd31edfa54dec2c2b88af665c87c
treebb4781c581765604b883bfbd3739add13577b4e6
parentd38ed2a9f224dbc79adbed4fe49fe2aef137bf5b
encoding/json: add an example for RawMessage

RawMessage is useful and mildly non-obvious.
Given the frequency with which RawMessage questions
show up on golang-nuts, and get answered with an example,
I suspect adding an example to the docs might help.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/14190044
src/pkg/encoding/json/example_test.go