Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • encoding
  • json
  • encode.go
Find file BlameHistoryPermalink
  • Joe Tsai's avatar
    encoding/json: cleanup detection of unexported embedded fields · 6872a8e1
    Joe Tsai authored Sep 22, 2017
    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: default avatarMatthew Dempsky <mdempsky@google.com>
    6872a8e1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7