go/src/sync
Russ Cox 2580d0e08d 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 <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2021-12-13 18:45:54 +00:00
..
atomic all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
cond.go
cond_test.go all: add empty line between copyright header and package clause 2020-08-17 09:45:44 +00:00
example_pool_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
example_test.go sync: use example.com for url in ExampleWaitGroup 2021-10-09 14:53:12 +00:00
export_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
map.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
map_bench_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
map_reference_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
map_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
mutex.go sync: in TryLock try to acquire mutex even if state is not 0 2021-11-16 05:58:03 +00:00
mutex_test.go sync: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock 2021-10-29 17:13:13 +00:00
once.go sync: use 386 instead of x86-32 to refer to the 32 bit x86 architecture 2020-11-23 05:57:35 +00:00
once_test.go
pool.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
pool_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
poolqueue.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
runtime.go runtime: static lock ranking for the runtime (enabled by GOEXPERIMENT) 2020-04-07 21:51:03 +00:00
runtime2.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
runtime2_lockrank.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
runtime_sema_test.go
rwmutex.go sync: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock 2021-10-29 17:13:13 +00:00
rwmutex_test.go sync: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock 2021-10-29 17:13:13 +00:00
waitgroup.go sync: avoid a dynamic check in WaitGroup on 64-bit architectures 2021-10-19 18:21:38 +00:00
waitgroup_test.go sync: remove TestWaitGroupMisuse2 and TestWaitGroupMisuse3 2021-10-14 17:38:39 +00:00