• Marvin Stenger's avatar
    cmd/vet: polish output of shadow test · a8d4463e
    Marvin Stenger authored
    This commit modifies the style of a error message in case of -shadow.
    
    Previously such a message would look like:
    foo.go:42: declaration of err shadows declaration at shadow.go:13:
    
    Changes of the commit include highlighting the variable name and
    removing the ": "(space intended) at the end of the line:
    foo.go:42: declaration of "err" shadows declaration at shadow.go:13
    
    Fixes #14585.
    
    Change-Id: Ia6a6bf396668dcba9a24f025a08d8826db31f434
    Reviewed-on: https://go-review.googlesource.com/20093Reviewed-by: 's avatarRob Pike <r@golang.org>
    a8d4463e
Name
Last commit
Last update
..
internal/whitelist Loading commit data...
testdata Loading commit data...
README Loading commit data...
asmdecl.go Loading commit data...
assign.go Loading commit data...
atomic.go Loading commit data...
bool.go Loading commit data...
buildtag.go Loading commit data...
cgo.go Loading commit data...
composite.go Loading commit data...
copylock.go Loading commit data...
deadcode.go Loading commit data...
doc.go Loading commit data...
main.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...
tests.go Loading commit data...
types.go Loading commit data...
unsafeptr.go Loading commit data...
unused.go Loading commit data...
vet_test.go Loading commit data...