json: do not Marshal unexported struct fields

R=r, cw, niemeyer, rsc
CC=golang-dev
https://golang.org/cl/3952041
This commit is contained in:
Andrew Gerrand 2011-01-12 11:59:33 +11:00
parent a41d85498e
commit 09d4bcf0f7
2 changed files with 11 additions and 2 deletions

View file

@ -270,6 +270,8 @@ type All struct {
Interface interface{}
PInterface *interface{}
unexported int
}
type Small struct {