go/src
Shulhan ed7f323c8f 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>
2019-05-06 22:19:22 +00:00
..
archive archive/zip: use Modified in FileHeader.FileInfo 2019-04-08 07:55:52 +00:00
bufio bufio: fix emptyFinalToken example to handle multiple Reads 2019-03-02 18:28:10 +00:00
builtin builtin: spec correction for panic() 2019-04-05 00:52:55 +00:00
bytes strings, bytes: add ToValidUTF8 2019-05-01 18:31:47 +00:00
cmd all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
compress cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
container
context all: add Unwrap and Is methods to various error types 2019-05-04 16:14:12 +00:00
crypto all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
database/sql all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
debug all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
encoding all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
errors errors: fix Is panics if target is uncomparable 2019-05-06 17:02:59 +00:00
expvar expvar: improve Map.addKey for large number of keys 2019-04-16 17:18:01 +00:00
flag cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
fmt fmt: fix spelling mistake in example 2019-03-25 21:03:10 +00:00
go all: add Unwrap and Is methods to various error types 2019-05-04 16:14:12 +00:00
hash
html html/template: add support for JavaScript modules 2019-05-06 17:06:16 +00:00
image image: deprecate ZP and ZR 2019-04-07 03:44:17 +00:00
index/suffixarray index/suffixarray: add 32-bit implementation 2019-05-01 15:19:07 +00:00
internal all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
io
log log: expose Writer() method of the standard logger 2019-03-25 01:18:56 +00:00
math math/big: document Int.String 2019-05-03 03:25:26 +00:00
mime mime: add .jpeg for builtin 2019-04-03 18:17:48 +00:00
net net/http: add support for SameSite=None 2019-05-06 18:01:25 +00:00
os all: add Unwrap and Is methods to various error types 2019-05-04 16:14:12 +00:00
path path/filepath: add examples for Base, Dir and IsAbs 2019-03-25 02:57:06 +00:00
plugin cmd/compile: reorganize init functions 2019-03-18 20:10:55 +00:00
reflect all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
regexp regexp: add ReplaceAllStringFunc example 2019-02-27 21:48:41 +00:00
runtime runtime: ensure free and unscavenged spans may be backed by huge pages 2019-05-06 21:15:01 +00:00
sort sort: simplify bootstrap 2019-05-02 20:30:31 +00:00
strconv strconv: Document ParseFloat's special cases 2019-04-29 11:07:31 +00:00
strings strings, bytes: add ToValidUTF8 2019-05-01 18:31:47 +00:00
sync sync: update comment 2019-04-19 16:15:36 +00:00
syscall syscall: remove unused {dragonfly,illumos,solaris}64Bit constants 2019-05-05 15:17:52 +00:00
testdata
testing testing: delay flag registration; move to an Init function 2019-04-29 19:54:30 +00:00
text all: add Unwrap and Is methods to various error types 2019-05-04 16:14:12 +00:00
time os,time: fix tests on iOS 2019-05-01 13:53:44 +00:00
unicode all: update to Unicode 11 2019-04-25 20:33:22 +00:00
unsafe
vendor vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
Make.dist
all.bash
all.bat
all.rc
bootstrap.bash bootstrap.bash: preserve file times when copying 2019-04-27 14:36:00 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
go.sum vendor: pull in text@v0.3.2 2019-04-26 19:27:51 +00:00
iostest.bash
make.bash cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
make.bat cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
make.rc cmd/go: add env -w and env -u to set and unset default env vars 2019-04-23 00:58:08 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
run.bat
run.rc