• 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
..
Makefile Loading commit data...
channel.go Loading commit data...
cipher.go Loading commit data...
cipher_test.go Loading commit data...
client.go Loading commit data...
client_auth.go Loading commit data...
client_auth_test.go Loading commit data...
client_func_test.go Loading commit data...
common.go Loading commit data...
common_test.go Loading commit data...
doc.go Loading commit data...
messages.go Loading commit data...
messages_test.go Loading commit data...
server.go Loading commit data...
server_shell.go Loading commit data...
server_shell_test.go Loading commit data...
session.go Loading commit data...
session_test.go Loading commit data...
tcpip.go Loading commit data...
tcpip_func_test.go Loading commit data...
transport.go Loading commit data...
transport_test.go Loading commit data...