• Robert Griesemer's avatar
    go/printer, gofmt: fine tuning of line spacing · 541b67d0
    Robert Griesemer authored
    - no empty lines inside empty structs and interfaces
    - top-level declarations are separated by a blank line if
      a) they are of different kind (e.g. const vs type); or
      b) there are documentation comments associated with a
         declaration (this is new)
    - applied gofmt -w misc src
    
    The actual changes are in go/printer/nodes.go:397-400 (empty structs/interfaces),
    and go/printer/printer.go:307-309 (extra line break). The remaining
    changes are cleanups w/o changing the existing functionality.
    
    Fixes issue  2570.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5493057
    541b67d0
Name
Last commit
Last update
..
testdata Loading commit data...
Makefile Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
error_test.go Loading commit data...
filepath.go Loading commit data...
filepath_test.go Loading commit data...
fix.go Loading commit data...
go1pkgrename.go Loading commit data...
go1pkgrename_test.go Loading commit data...
googlecode.go Loading commit data...
googlecode_test.go Loading commit data...
hashsum.go Loading commit data...
hashsum_test.go Loading commit data...
htmlerr.go Loading commit data...
htmlerr_test.go Loading commit data...
httpfinalurl.go Loading commit data...
httpfinalurl_test.go Loading commit data...
httpfs.go Loading commit data...
httpfs_test.go Loading commit data...
httpheaders.go Loading commit data...
httpheaders_test.go Loading commit data...
httpserver.go Loading commit data...
httpserver_test.go Loading commit data...
httputil.go Loading commit data...
httputil_test.go Loading commit data...
imagecolor.go Loading commit data...
imagecolor_test.go Loading commit data...
imagenew.go Loading commit data...
imagenew_test.go Loading commit data...
import_test.go Loading commit data...
iocopyn.go Loading commit data...
iocopyn_test.go Loading commit data...
main.go Loading commit data...
main_test.go Loading commit data...
mapdelete.go Loading commit data...
mapdelete_test.go Loading commit data...
math.go Loading commit data...
math_test.go Loading commit data...
netdial.go Loading commit data...
netdial_test.go Loading commit data...
netudpgroup.go Loading commit data...
netudpgroup_test.go Loading commit data...
oserrorstring.go Loading commit data...
oserrorstring_test.go Loading commit data...
osopen.go Loading commit data...
osopen_test.go Loading commit data...
procattr.go Loading commit data...
procattr_test.go Loading commit data...
reflect.go Loading commit data...
reflect_test.go Loading commit data...
signal.go Loading commit data...
signal_test.go Loading commit data...
sorthelpers.go Loading commit data...
sorthelpers_test.go Loading commit data...
sortslice.go Loading commit data...
sortslice_test.go Loading commit data...
strconv.go Loading commit data...
strconv_test.go Loading commit data...
stringssplit.go Loading commit data...
stringssplit_test.go Loading commit data...
template.go Loading commit data...
template_test.go Loading commit data...
timefileinfo.go Loading commit data...
timefileinfo_test.go Loading commit data...
typecheck.go Loading commit data...
url.go Loading commit data...
url_test.go Loading commit data...