mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
a41d85498e
commit
09d4bcf0f7
2 changed files with 11 additions and 2 deletions
|
|
@ -270,6 +270,8 @@ type All struct {
|
|||
|
||||
Interface interface{}
|
||||
PInterface *interface{}
|
||||
|
||||
unexported int
|
||||
}
|
||||
|
||||
type Small struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue