aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2017-09-22 15:44:09 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2017-09-23 00:33:34 +0000
commit6872a8e1c9904af5f6c23e42e01b027c8cd1c813 (patch)
tree243b628cdb5d3061edc07181425dcd986b18e928 /src/database/sql/sql.go
parente97209515ad8c4042f5a3ef32068200366892fc2 (diff)
downloadgo-6872a8e1c9904af5f6c23e42e01b027c8cd1c813.tar.xz
encoding/json: cleanup detection of unexported embedded fields
CL 60410 fixes the compiler such that reflect.StructField.PkgPath is non-empty if and only if the field is unexported. Given that property, we can cleanup the logic in the json encoder to avoid parsing the field name to detect export properties. Updates #21122 Change-Id: Ic01b9c4ca76386774846b742b0c1b9b948f53e7c Reviewed-on: https://go-review.googlesource.com/65550 Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions