Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • 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

Switch branch/tag
  • go
  • src
  • go
  • printer
  • testdata
  • expressions.raw
Find file BlameHistoryPermalink
  • Michal Bohuslávek's avatar
    go/printer: fix indentation of *ast.CallExpr parameters · ab14797f
    Michal Bohuslávek authored Aug 26, 2015
    The current version of go/printer formats the following code
    like this:
    
    	foo.Bar().
    		Run(func() {
    		do()
    	}).
    		Set(map[string]interface{}{
    		"x": "three",
    		"y": 4,
    	}).
    		Run(
    		func() {
    			do()
    		},
    	)
    
    This CL changes the go/printer behaviour to make the code look
    like this.
    
    	foo.Bar().
    		Run(func() {
    			do()
    		}).
    		Set(map[string]interface{}{
    			"x": "three",
    			"y": 4,
    		}).
    		Run(
    			func() {
    				do()
    			},
    		)
    
    Fixes #12066.
    
    Change-Id: If0f525dae1a5d45f9ba40534dbb65715d7e8001b
    Reviewed-on: https://go-review.googlesource.com/13928
    
    Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
    ab14797f

Replace expressions.raw

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7