• Shulhan's avatar
    all: simplify code using "gofmt -s -w" · ed7f323c
    Shulhan authored
    Most changes are removing redundant declaration of type when direct
    instantiating value of map or slice, e.g. []T{T{}} become []T{{}}.
    
    Small changes are removing the high order of subslice if its value
    is the length of slice itself, e.g. T[:len(T)] become T[:].
    
    The following file is excluded due to incompatibility with go1.4,
    
    - src/cmd/compile/internal/gc/ssa.go
    
    Change-Id: Id3abb09401795ce1e6da591a89749cba8502fb26
    Reviewed-on: https://go-review.googlesource.com/c/go/+/166437
    Run-TryBot: Dave Cheney <dave@cheney.net>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    ed7f323c
all_test.go 171 KB