• Russ Cox's avatar
    cmd/vet: fix ironic misuse of fmt.Sprintf · 0d52c144
    Russ Cox authored
    Move badf helper into top-level function so that prints from buildtag.go
    are once again themselves printf-format-checked by vet.
    Also, fix implementation, which was missing a ... in the Sprintf call and
    produced messages like:
    
    /Users/rsc/x_test.go:1: +build comment must appear before package clause and be followed by a blank line%!(EXTRA []interface {}=[])
    
    These were introduced in CL 111415.
    
    Change-Id: I000af3a4e01dc99fc79c9146aa68a71dace1460f
    Reviewed-on: https://go-review.googlesource.com/121300
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    0d52c144
Name
Last commit
Last update
..
asm Loading commit data...
buildtag Loading commit data...
cgo Loading commit data...
divergent Loading commit data...
incomplete Loading commit data...
tagtest Loading commit data...
testingpkg Loading commit data...
asm8.s Loading commit data...
assign.go Loading commit data...
atomic.go Loading commit data...
bool.go Loading commit data...
composite.go Loading commit data...
copylock.go Loading commit data...
copylock_func.go Loading commit data...
copylock_range.go Loading commit data...
deadcode.go Loading commit data...
httpresponse.go Loading commit data...
lostcancel.go Loading commit data...
method.go Loading commit data...
nilfunc.go Loading commit data...
print.go Loading commit data...
rangeloop.go Loading commit data...
shadow.go Loading commit data...
shift.go Loading commit data...
structtag.go Loading commit data...
unsafeptr.go Loading commit data...
unused.go Loading commit data...