• Joe Tsai's avatar
    cmd/doc: truncate long lists of arguments · a1ea9121
    Joe Tsai authored
    Some field-lists (especially in generated code) can be excessively long.
    In the one-line printout, it does not make sense to print all elements
    of the list if line-wrapping causes the "one-line" to become multi-line.
    
    // Before:
    var LongLine = newLongLine("someArgument1", "someArgument2", "someArgument3", "someArgument4", "someArgument5", "someArgument6", "someArgument7", "someArgument8")
    
    // After:
    var LongLine = newLongLine("someArgument1", "someArgument2", "someArgument3", "someArgument4", ...)
    
    Change-Id: I4bbbe2dbd1d7be9f02d63431d213088c3dee332c
    Reviewed-on: https://go-review.googlesource.com/36031
    Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    a1ea9121
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...