]> Cypherpunks repositories - gostls13.git/commit
reflect: add example for StructOf
authorSebastien Binet <seb.binet@gmail.com>
Tue, 6 Dec 2016 09:40:31 +0000 (10:40 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Dec 2016 20:18:12 +0000 (20:18 +0000)
commit6c7978fc895099d0053ca7e994ca0936e10ba2d9
treef16896d957df9db500ffded7961b1754a98d9d0c
parentf251708a733bfca46899d57baab7d2601f6d7057
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>
src/reflect/example_test.go