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
You need to sign in or sign up before continuing.
  • go
  • src
  • errors
  • example_test.go
Find file BlameHistoryPermalink
  • Andrew Gerrand's avatar
    errors: fix package example · 5e2af2b0
    Andrew Gerrand authored May 31, 2019
    The example in example_test.go requires that the whole file be
    displayed; the addition of ExampleAs meant that only the body of the
    package example function was shown, rather than the surrounding context.
    
    This change moves ExampleAs to the file wrap_test.go file, restoring the
    package example to its former glory.
    
    Update #31716
    
    Change-Id: Id0ea77bc06023b239a63c1d6a7c8b3c1dae91ce9
    Reviewed-on: https://go-review.googlesource.com/c/go/+/179737
    
    
    Reviewed-by: default avatarMarcel van Lohuizen <mpvl@golang.org>
    Reviewed-by: default avatarJean de Klerk <deklerk@google.com>
    Run-TryBot: Benny Siegert <bsiegert@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    5e2af2b0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7