Repository navigation
Commit 6bb77fe
committed
Now checking if a field is not anonymous before
skipping it when walking over values in an struct, to make sure that we
don't skip validly accessible (exported) embedded values in an
unexported field.
This new checking logic is the new recommended strategy for reflective
struct walking as of the Go 1.6 release.
Related/References:
- Go 1.6 reflect release note: https://golang.org/doc/go1.6#reflect
- Issue: https://golang.org/issue/12367
(golang/go#12367)
- CL: https://golang.org/cl/14085
(https://go-review.googlesource.com/#/c/14085/)
- Commit: golang/go@afe98371 parent 4ef3313 commit 6bb77fe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments