go/src
Sebastien Binet 6c7978fc89 reflect: add example for StructOf
This CL adds a simple example for StructOf.
The example shows how StructOf can be used in a JSON roundtrip.

Change-Id: I9ff1ea9cb8c0cf297c5fae74e68b89931076adfd
Reviewed-on: https://go-review.googlesource.com/33953
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-12-06 20:18:12 +00:00
..
archive archive/zip: skip large concurrent tests in race mode 2016-11-21 20:51:42 +00:00
bufio
builtin
bytes all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
cmd cmd/link: hash packages after loading all symbols 2016-12-06 14:07:40 +00:00
compress compress/flate: add examples 2016-11-12 18:42:35 +00:00
container
context context: document appropriate WithValue key type more 2016-11-12 06:25:11 +00:00
crypto crypto/x509: read Darwin trust settings for root CAs 2016-12-01 19:24:34 +00:00
database/sql database/sql: ensure Commit and Rollback return ErrTxDone 2016-12-01 22:20:31 +00:00
debug cmd/objdump: copy gosym.PCValue into internal package 2016-12-01 18:20:04 +00:00
encoding encoding/binary: document the new bool support 2016-12-01 00:51:24 +00:00
errors
expvar
flag
fmt fmt: fix typo 2016-11-17 15:29:40 +00:00
go go/ast: fix doc string for ast.GenDecl 2016-11-29 23:11:17 +00:00
hash
html html/template: lock in application/json as valid JS test 2016-12-04 03:59:31 +00:00
image
index/suffixarray
internal internal/pprof/profile: parse mutex profile including comments 2016-11-29 18:04:37 +00:00
io
log all: don't call t.Fatal from a goroutine 2016-11-15 15:13:48 +00:00
math math/rand: export Source64, mainly for documentation value 2016-11-23 04:29:25 +00:00
mime mime/multipart: test for overreading on a stream 2016-11-07 19:32:11 +00:00
net net/http: update bundled http2 2016-12-06 19:49:06 +00:00
os Revert "runtime: handle SIGPIPE in c-archive and c-shared programs" 2016-12-01 11:23:17 +00:00
path path: document that filepath is recommended to manipulate filename paths 2016-11-08 18:36:52 +00:00
plugin cmd/link, runtime, plugin: versioning 2016-11-15 16:14:27 +00:00
reflect reflect: add example for StructOf 2016-12-06 20:18:12 +00:00
regexp
runtime runtime/cgo: retry pthread_create on EAGAIN for OpenBSD 2016-12-05 21:15:05 +00:00
sort sort: add Slice example 2016-12-01 05:43:05 +00:00
strconv
strings
sync runtime/internal/atomic: crash on unaligned 64-bit ops on 32-bit MIPS 2016-11-22 02:05:07 +00:00
syscall syscall: define bind flags on Plan 9 2016-11-15 18:19:10 +00:00
testing testing: comment out flag.Parse from example 2016-11-25 16:41:34 +00:00
text text/template: handle option missingkey=error consistently 2016-11-18 15:56:02 +00:00
time time: make Parse validate day's lower bound in addition to upper bound 2016-11-22 11:02:12 +00:00
unicode
unsafe unsafe: remove incorrect type conversion in docs 2016-11-07 18:54:14 +00:00
vendor/golang_org/x vendor/golang_org/x/crypto/chacha20poly1305: revendor to pick up fix for #18154 2016-12-02 06:00:05 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
iostest.bash
make.bash
make.bat
make.rc build: fix cross-compile on Plan 9 2016-11-22 01:32:28 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc