Commit 2580d0e
committed
all: gofmt -w -r 'interface{} -> any' src
And then revert the bootstrap cmd directories and certain testdata.
And adjust tests as needed.
Not reverting the changes in std that are bootstrapped,
because some of those changes would appear in API docs,
and we want to use any consistently.
Instead, rewrite 'any' to 'interface{}' in cmd/dist for those directories
when preparing the bootstrap copy.
A few files changed as a result of running gofmt -w
not because of interface{} -> any but because they
hadn't been updated for the new //go:build lines.
Fixes #49884.
Change-Id: Ie8045cba995f65bd79c694ec77a1b3d1fe01bb09
Reviewed-on: https://go-review.googlesource.com/c/go/+/368254
Trust: Russ Cox <[email protected]>
Run-TryBot: Russ Cox <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>1 parent 083ef54 commit 2580d0e
File tree
445 files changed
+1906
-1875
lines changed- src
- archive
- tar
- zip
- builtin
- bytes
- cmd
- api
- testdata/src
- issue21181/p
- pkg
- p1
- p4
- compile/internal/importer
- cover/testdata
- dist
- doc
- testdata/nested
- fix
- gofmt
- go
- internal
- base
- cmdflag
- fsys
- generate
- help
- imports/testdata
- android
- illumos
- star
- list
- load
- modcmd
- modfetch
- codehost
- modget
- modload
- mvs
- par
- run
- str
- vcs
- work
- testdata
- testterminal18153
- internal
- buildid
- test2json
- traceviewer
- nm
- pack
- pprof
- trace
- container
- heap
- list
- ring
- context
- crypto
- ed25519/internal/edwards25519
- tls
- x509
- pkix
- database/sql
- driver
- debug
- dwarf
- elf
- gosym
- macho
- pe
- plan9obj
- embed
- internal/embedtest
- encoding
- ascii85
- asn1
- base32
- base64
- binary
- gob
- json
- xml
- errors
- expvar
- flag
- fmt
- go
- ast
- constant
- doc
- testdata
- format
- internal
- gccgoimporter
- gcimporter
- testdata
- parser
- printer
- testdata
- scanner
- token
- types
- html/template
- image/draw
- internal
- abi
- fmtsort
- fuzz
- intern
- lazytemplate
- nettrace
- poll
- reflectlite
- singleflight
- syscall/windows/registry
- trace
- unsafeheader
- io
- fs
- log
- math
- big
- bits
- rand
- mime
- quotedprintable
- net
- http
- cgi
- httptrace
- httputil
- mail
- netip
- rpc
- jsonrpc
- smtp
- textproto
- url
- os
- exec
- user
- plugin
- reflect
- runtime
- cgo
- debug
- internal/atomic
- pprof
- race
- testdata
- testdata
- testprogcgo
- testprognet
- testprog
- testwinlib
- trace
- sort
- strings
- sync
- atomic
- syscall
- js
- testing
- fstest
- internal/testdeps
- quick
- text
- scanner
- template
- parse
- time
- tzdata
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
445 files changed
+1906
-1875
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| |||
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | | - | |
| 1379 | + | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | | - | |
| 1034 | + | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
| 1047 | + | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | | - | |
| 1074 | + | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments