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
  • Augusto Roman's avatar
    encoding/json: allow non-string type keys for (un-)marshal · ffbd31e9
    Augusto Roman authored Mar 08, 2016
    This CL allows JSON-encoding & -decoding maps whose keys are types that
    implement encoding.TextMarshaler / TextUnmarshaler.
    
    During encode, the map keys are marshaled upfront so that they can be
    sorted.
    
    Fixes #12146
    
    Change-Id: I43809750a7ad82a3603662f095c7baf75fd172da
    Reviewed-on: https://go-review.googlesource.com/20356
    
    
    Run-TryBot: Caleb Spare <cespare@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    ffbd31e9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7