doc: add JSON and Go article
Originally published on The Go Programming Language Blog, January 25, 2011.
http://blog.golang.org/2011/01/json-and-go.html
R=adg
CC=golang-dev
https://golang.org/cl/5846044
diff --git a/doc/progs/run b/doc/progs/run
index 1c1ac43..8348a33 100755
--- a/doc/progs/run
+++ b/doc/progs/run
@@ -51,7 +51,15 @@
gobs2
"
-all=$(echo $defer_panic_recover $effective_go $error_handling $law_of_reflection $c_go_cgo $timeout $gobs slices go1)
+json="
+ json1
+ json2
+ json3
+ json4
+ json5
+"
+
+all=$(echo $defer_panic_recover $effective_go $error_handling $law_of_reflection $c_go_cgo $timeout $gobs $json slices go1)
for i in $all; do
go build $i.go
@@ -79,5 +87,9 @@
testit go1 '^Christmas is a holiday: true Sleeping for 0.123s.*go1.go already exists$'
testit interface2 "^type: float64$"
+testit json1 "^$"
+testit json2 "the reciprocal of i is"
+testit json3 "Age is int 6"
+testit json4 "^$"
rm -f $all "$TMPFILE"