]> Cypherpunks.ru repositories - gostls13.git/commit
all: simplify code using "gofmt -s -w"
authorShulhan <m.shulhan@gmail.com>
Sat, 9 Mar 2019 04:36:37 +0000 (11:36 +0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 6 May 2019 22:19:22 +0000 (22:19 +0000)
commited7f323c8f4f6bc61a75146bf34f5b8f73063a17
tree79a5c2f12147252f05d59e4a69c93309e54a4b77
parent04845fe78aeba33106c6f8a40d05e608ca687214
all: simplify code using "gofmt -s -w"

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: Ian Lance Taylor <iant@golang.org>
18 files changed:
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/go/internal/modfetch/pseudo.go
src/cmd/internal/obj/s390x/asmz.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/wasm/asm.go
src/cmd/trace/pprof.go
src/crypto/md5/md5_test.go
src/crypto/sha1/sha1_test.go
src/crypto/sha256/sha256_test.go
src/crypto/sha512/sha512_test.go
src/crypto/x509/name_constraints_test.go
src/crypto/x509/verify.go
src/database/sql/convert_test.go
src/debug/macho/file_test.go
src/encoding/base32/base32_test.go
src/encoding/binary/example_test.go
src/internal/xcoff/ar_test.go
src/reflect/all_test.go