mirror of
https://github.com/golang/go
synced 2025-05-04 03:11:34 +00:00
all: go fmt std cmd (but revert vendor)
Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: Ia0534360e4957e58cd9a18429c39d0e32a6addb4 Reviewed-on: https://go-review.googlesource.com/c/go/+/294430 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
src
archive
bytes
cmd
api
compile
internal
dist
go
go11.gogo_unix_test.go
internal
base
lockedfile
modfetch
modload
renameio
robustio
test
web
work
internal
link
elf_test.go
internal
nm
pprof
trace
crypto
aes
cipher
ecdsa
elliptic
internal
md5
rand
sha1
sha256
sha512
tls
x509
debug
encoding
go
hash
html
image
index
suffixarray
internal
abi
bytealg
compare_generic.gocompare_native.gocount_generic.gocount_native.goindex_generic.goindex_native.goindexbyte_generic.goindexbyte_native.go
cpu
cpu_arm64_android.gocpu_arm64_darwin.gocpu_arm64_freebsd.gocpu_arm64_hwcap.gocpu_arm64_linux.gocpu_arm64_other.gocpu_mips64x.gocpu_no_name.gocpu_ppc64x.gocpu_ppc64x_aix.gocpu_ppc64x_linux.gocpu_x86.gocpu_x86_test.go
goroot
poll
errno_unix.goerrno_windows.goerror_stub_test.goexport_posix_test.gofcntl_js.gofcntl_libc.gofcntl_syscall.gofd_fsync_posix.gofd_poll_js.gofd_poll_runtime.gofd_posix.gofd_posix_test.gofd_unix.gofd_writev_darwin.gofd_writev_illumos.gofd_writev_unix.gohook_cloexec.gohook_unix.goiovec_illumos.goiovec_unix.gosendfile_bsd.gosock_cloexec.gosockopt.gosockopt_unix.gosockoptip.gostrconv.gosys_cloexec.gowritev.go
race
syscall
execenv
unix
testenv
log
math
mime
net
addrselect.goaddrselect_test.gocgo_aix.gocgo_android.gocgo_bsd.gocgo_linux.gocgo_netbsd.gocgo_openbsd.gocgo_resnew.gocgo_resold.gocgo_socknew.gocgo_sockold.gocgo_solaris.gocgo_stub.gocgo_unix.gocgo_unix_test.gocgo_windows.goconf.goconf_netcgo.goconf_test.goconn_test.godial_test.godial_unix_test.godnsclient_unix.godnsclient_unix_test.godnsconfig_unix.godnsconfig_unix_test.godnsname_test.goerror_posix.goerror_posix_test.goerror_test.goerror_unix.goerror_unix_test.goexternal_test.gofd_posix.gofd_unix.gofile_stub.gofile_test.gofile_unix.gohook_unix.goip_test.goiprawsock_posix.goiprawsock_test.goipsock_posix.golisten_test.golookup_fake.golookup_test.golookup_unix.gomain_cloexec_test.gomain_conf_test.gomain_noconf_test.gomain_posix_test.gomain_test.gomain_unix_test.gomockserver_test.gonet_fake.gonet_test.gonetgo_unix_test.gonss.gonss_test.gopacketconn_test.goport_unix.goprotoconn_test.gorawconn_stub_test.gorawconn_test.gorawconn_unix_test.gosendfile_stub.gosendfile_test.gosendfile_unix_alt.goserver_test.gosock_bsd.gosock_cloexec.gosock_posix.gosock_stub.gosockaddr_posix.gosockopt_bsd.gosockopt_posix.gosockopt_stub.gosockoptip_bsdvar.gosockoptip_posix.gosockoptip_stub.gosplice_stub.gosplice_test.gosys_cloexec.gotcpsock_posix.gotcpsock_test.gotcpsock_unix_test.gotcpsockopt_posix.gotcpsockopt_stub.gotcpsockopt_unix.gotimeout_test.goudpsock_posix.goudpsock_test.gounixsock_posix.gounixsock_test.gounixsock_windows_test.gowrite_unix_test.gowritev_test.gowritev_unix.go
http
interface_bsd.gointerface_bsd_test.gointerface_bsdvar.gointerface_stub.gointerface_test.gointerface_unix_test.gointernal
socktest
os
dir_unix.goendian_big.goendian_little.goenv_unix_test.goerror_errno.goerror_posix.goerror_unix_test.goerror_windows_test.go
exec
exec_posix.goexec_unix.goexec_unix_test.goexecutable_path.goexecutable_plan9.goexecutable_procfs.goexecutable_sysctl.goexport_unix_test.gofifo_test.gofile_posix.gofile_unix.goos_unix_test.gopath_unix.gopipe2_bsd.gopipe2_illumos.gopipe_bsd.gopipe_test.gorawconn.gorawconn_test.goreadfrom_stub.goremoveall_at.goremoveall_noat.gosignal
stat_js.gostat_unix.gosticky_bsd.gosticky_notbsd.gosys_bsd.gosys_js.gosys_unix.gotimeout_test.gotypes_unix.gouser
cgo_lookup_unix.gocgo_unix_test.gogetgrouplist_darwin.gogetgrouplist_unix.golistgroups_aix.golistgroups_solaris.golistgroups_unix.golookup_android.golookup_stubs.golookup_unix.golookup_unix_test.go
wait_unimp.gowait_wait6.gowait_waitid.gopath
plugin
regexp
runtime
auxv_none.golfstack_32bit.golfstack_64bit.golibfuzzer.golock_futex.golock_js.golock_sema.golockrank_off.golockrank_on.gomem_bsd.gomem_js.gomkduff.gomkfastlog2table.gomkpreempt.gomksizeclasses.gommap.gompagealloc_32bit.gompagealloc_64bit.gomsan.gomsan0.gonbpipe_fcntl_libc_test.gonbpipe_fcntl_unix_test.gonbpipe_pipe.gonbpipe_pipe2.gonbpipe_test.gonetpoll.gonetpoll_epoll.gonetpoll_fake.gonetpoll_kqueue.gonetpoll_stub.gonorace_linux_test.gonorace_test.goos_aix.goos_freebsd2.goos_freebsd_noauxv.goos_js.goos_linux_arm64.goos_linux_be64.goos_linux_generic.goos_linux_mips64x.goos_linux_mipsx.goos_linux_noauxv.goos_linux_novdso.goos_linux_ppc64x.goos_linux_x86.goos_nonopenbsd.goos_only_solaris.goos_openbsd_libc.goos_openbsd_syscall.goos_openbsd_syscall1.goos_openbsd_syscall2.gopanic32.go
cgo
cgo_mmap.gocgo_ppc64x.gocgo_sigaction.gocputicks.gocrash_cgo_test.gocrash_nonunix_test.gocrash_unix_test.godebug
debug_test.godebugcall.godebuglog_off.godebuglog_on.godefs1_linux.godefs2_linux.godefs3_linux.godefs_aix.godefs_aix_ppc64.godefs_arm_linux.godefs_darwin.godefs_dragonfly.godefs_freebsd.godefs_linux.godefs_linux_mips64x.godefs_linux_mipsx.godefs_netbsd.godefs_netbsd_386.godefs_netbsd_amd64.godefs_netbsd_arm.godefs_openbsd.godefs_solaris.godefs_solaris_amd64.goenv_posix.goexport_debug_test.goexport_futex_test.goexport_mmap_test.goexport_pipe2_test.goexport_pipe_test.goexport_unix_test.gofutex_test.gohash32.gohash64.gointernal
atomic
sys
gengoos.gointrinsics.gointrinsics_stubs.gozgoarch_386.gozgoarch_amd64.gozgoarch_arm.gozgoarch_arm64.gozgoarch_arm64be.gozgoarch_armbe.gozgoarch_mips.gozgoarch_mips64.gozgoarch_mips64le.gozgoarch_mips64p32.gozgoarch_mips64p32le.gozgoarch_mipsle.gozgoarch_ppc.gozgoarch_ppc64.gozgoarch_ppc64le.gozgoarch_riscv.gozgoarch_riscv64.gozgoarch_s390.gozgoarch_s390x.gozgoarch_sparc.gozgoarch_sparc64.gozgoarch_wasm.gozgoos_aix.gozgoos_android.gozgoos_darwin.gozgoos_dragonfly.gozgoos_freebsd.gozgoos_hurd.gozgoos_illumos.gozgoos_ios.gozgoos_js.gozgoos_linux.gozgoos_netbsd.gozgoos_openbsd.gozgoos_plan9.gozgoos_solaris.gozgoos_windows.gozgoos_zos.go
pprof
preempt_nonwindows.gorace.gorace
output_test.gorace.gorace_linux_test.gorace_test.gorace_unix_test.gorace_windows_test.gosched_test.gosyso_test.gotimer_test.go
race0.gorelax_stub.goruntime_mmap_test.goruntime_unix_test.gosemasleep_test.gosigaction.gosignal_386.gosignal_aix_ppc64.gosignal_amd64.gosignal_arm.gosignal_arm64.gosignal_linux_mips64x.gosignal_linux_mipsx.gosignal_linux_ppc64x.gosignal_mips64x.gosignal_mipsx.gosignal_ppc64x.gosignal_riscv64.gosignal_unix.gosignal_windows_test.gosigqueue.gosigqueue_note.gosigtab_linux_generic.gosigtab_linux_mipsx.gostubs2.gostubs3.gostubs_linux.gostubs_mips64x.gostubs_mipsx.gostubs_nonlinux.gostubs_ppc64x.gosys_libc.gosys_mips64x.gosys_mipsx.gosys_nonppc64x.gosys_openbsd.gosys_openbsd1.gosys_openbsd2.gosys_openbsd3.gosys_ppc64x.gosys_x86.gotime_fake.gotime_nofake.gotimeasm.gotimestub.gotimestub2.govdso_elf32.govdso_elf64.govdso_freebsd.govdso_freebsd_x86.govdso_in_none.govdso_linux.govdso_linux_mips64x.govdso_linux_ppc64x.govlrt.gowincallback.gowrite_err.gosort
strconv
sync
syscall
bpf_bsd.gocreds_test.godirent.godirent_test.goendian_big.goendian_little.goenv_unix.goexec_aix_test.goexec_bsd.goexec_libc.goexec_libc2.goexec_linux.goexec_linux_test.goexec_solaris_test.goexec_unix.goexec_unix_test.goexport_unix_test.goflock.goflock_linux_32bit.goforkpipe.goforkpipe2.gofs_js.gogetdirentries_test.gomkasm.gomkpost.gomksyscall_windows.gommap_unix_test.gomsan.gomsan0.gonet_js.goptrace_darwin.goroute_bsd.goroute_freebsd_32bit.goroute_freebsd_64bit.gosetuidgid_32_linux.gosetuidgid_linux.gosockcmsg_unix.gosockcmsg_unix_other.gosyscall_bsd.gosyscall_bsd_test.gosyscall_dup2_linux.gosyscall_dup3_linux.gosyscall_freebsd_test.gosyscall_illumos.gosyscall_js.gosyscall_linux_mips64x.gosyscall_linux_mipsx.gosyscall_linux_ppc64x.gosyscall_openbsd1.gosyscall_openbsd_libc.gosyscall_ptrace_test.gosyscall_unix.gosyscall_unix_test.gotables_js.gotime_fake.gotime_nofake.gotimestruct.gotypes_aix.gotypes_darwin.gotypes_dragonfly.gotypes_freebsd.gotypes_illumos_amd64.gotypes_linux.gotypes_netbsd.gotypes_openbsd.gotypes_solaris.gozerrors_darwin_amd64.gozerrors_darwin_arm64.gozerrors_dragonfly_amd64.gozerrors_freebsd_386.gozerrors_freebsd_amd64.gozerrors_freebsd_arm.gozerrors_freebsd_arm64.gozerrors_linux_386.gozerrors_linux_amd64.gozerrors_linux_arm.gozerrors_linux_arm64.gozerrors_linux_ppc64.gozerrors_linux_ppc64le.gozerrors_netbsd_386.gozerrors_netbsd_amd64.gozerrors_netbsd_arm.gozerrors_netbsd_arm64.gozerrors_openbsd_386.gozerrors_openbsd_amd64.gozerrors_openbsd_arm.gozerrors_solaris_amd64.gozsyscall_aix_ppc64.gozsyscall_darwin_amd64.gozsyscall_darwin_arm64.gozsyscall_dragonfly_amd64.gozsyscall_freebsd_386.gozsyscall_freebsd_amd64.gozsyscall_freebsd_arm.gozsyscall_freebsd_arm64.gozsyscall_linux_386.gozsyscall_linux_amd64.gozsyscall_linux_arm.gozsyscall_linux_arm64.gozsyscall_linux_mips.gozsyscall_linux_mips64.gozsyscall_linux_mips64le.gozsyscall_linux_mipsle.gozsyscall_linux_ppc64.gozsyscall_linux_ppc64le.gozsyscall_linux_riscv64.gozsyscall_linux_s390x.gozsyscall_netbsd_386.gozsyscall_netbsd_amd64.gozsyscall_netbsd_arm.gozsyscall_netbsd_arm64.gozsyscall_openbsd_386.gozsyscall_openbsd_amd64.gozsyscall_openbsd_arm.gozsyscall_openbsd_arm64.gozsyscall_openbsd_mips64.gozsyscall_plan9_386.gozsyscall_plan9_amd64.gozsyscall_plan9_arm.gozsyscall_solaris_amd64.gozsysnum_darwin_amd64.gozsysnum_darwin_arm64.gozsysnum_dragonfly_amd64.gozsysnum_freebsd_386.gozsysnum_freebsd_amd64.gozsysnum_freebsd_arm.gozsysnum_freebsd_arm64.gozsysnum_linux_386.gozsysnum_linux_amd64.gozsysnum_linux_arm.gozsysnum_linux_arm64.gozsysnum_linux_ppc64.gozsysnum_linux_ppc64le.gozsysnum_netbsd_386.gozsysnum_netbsd_amd64.gozsysnum_netbsd_arm.gozsysnum_netbsd_arm64.gozsysnum_openbsd_386.gozsysnum_openbsd_amd64.gozsysnum_openbsd_arm.gozsysnum_solaris_amd64.goztypes_darwin_amd64.goztypes_darwin_arm64.goztypes_dragonfly_amd64.goztypes_freebsd_386.goztypes_freebsd_amd64.goztypes_freebsd_arm.goztypes_freebsd_arm64.goztypes_linux_386.goztypes_linux_amd64.goztypes_linux_arm.goztypes_linux_arm64.goztypes_linux_ppc64.goztypes_linux_ppc64le.goztypes_netbsd_386.goztypes_netbsd_amd64.goztypes_netbsd_arm.goztypes_netbsd_arm64.goztypes_openbsd_386.goztypes_openbsd_amd64.goztypes_solaris_amd64.go
testing
time
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || linux || dragonfly || openbsd || solaris
|
||||
// +build aix linux dragonfly openbsd solaris
|
||||
|
||||
package tar
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || freebsd || netbsd
|
||||
// +build darwin freebsd netbsd
|
||||
|
||||
package tar
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || linux || darwin || dragonfly || freebsd || openbsd || netbsd || solaris
|
||||
// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris
|
||||
|
||||
package tar
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
//
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package bytes_test
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// The run program is invoked via the dist tool.
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.8
|
||||
// +build !go1.8
|
||||
|
||||
package gc
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.8
|
||||
// +build go1.8
|
||||
|
||||
package gc
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.7
|
||||
// +build go1.7
|
||||
|
||||
package gc
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.8
|
||||
// +build go1.8
|
||||
|
||||
package logopt
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.8
|
||||
// +build !go1.8
|
||||
|
||||
package logopt
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build amd64 || arm64
|
||||
// +build amd64 arm64
|
||||
|
||||
package ssa
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package typecheck
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd
|
||||
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
||||
|
||||
package typecheck
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Generate builtin.go from builtin/runtime.go.
|
||||
|
@ -6,6 +6,7 @@
|
||||
// Only run where builders (build.golang.org) have
|
||||
// access to compiled packages for import.
|
||||
//
|
||||
//go:build !arm && !arm64
|
||||
// +build !arm,!arm64
|
||||
|
||||
package types2_test
|
||||
|
1
src/cmd/dist/sys_default.go
vendored
1
src/cmd/dist/sys_default.go
vendored
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package main
|
||||
|
1
src/cmd/dist/test_linux.go
vendored
1
src/cmd/dist/test_linux.go
vendored
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package main
|
||||
|
1
src/cmd/dist/util_gc.go
vendored
1
src/cmd/dist/util_gc.go
vendored
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !gccgo
|
||||
// +build !gccgo
|
||||
|
||||
package main
|
||||
|
1
src/cmd/dist/util_gccgo.go
vendored
1
src/cmd/dist/util_gccgo.go
vendored
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build gccgo
|
||||
// +build gccgo
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.1
|
||||
// +build go1.1
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package main_test
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build plan9 || windows
|
||||
// +build plan9 windows
|
||||
|
||||
package base
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || darwin || dragonfly || freebsd || js || linux || netbsd || openbsd || solaris
|
||||
// +build aix darwin dragonfly freebsd js linux netbsd openbsd solaris
|
||||
|
||||
package base
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || (solaris && !illumos)
|
||||
// +build aix solaris,!illumos
|
||||
|
||||
// This code implements the filelock API using POSIX 'fcntl' locks, which attach
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris && !windows
|
||||
// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!plan9,!solaris,!windows
|
||||
|
||||
package filelock
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package filelock
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !js && !plan9
|
||||
// +build !js,!plan9
|
||||
|
||||
package filelock_test
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
|
||||
// +build darwin dragonfly freebsd illumos linux netbsd openbsd
|
||||
|
||||
package filelock
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package filelock
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package lockedfile
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package lockedfile
|
||||
|
@ -3,6 +3,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// js does not support inter-process file locking.
|
||||
//go:build !js
|
||||
// +build !js
|
||||
|
||||
package lockedfile_test
|
||||
|
@ -3,6 +3,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// js does not support inter-process file locking.
|
||||
//go:build !js
|
||||
// +build !js
|
||||
|
||||
package lockedfile_test
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build cmd_go_bootstrap
|
||||
// +build cmd_go_bootstrap
|
||||
|
||||
package modfetch
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Interactive debugging shell for codehost.Repo implementations.
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
// Go checksum database lookup
|
||||
|
||||
//go:build !cmd_go_bootstrap
|
||||
// +build !cmd_go_bootstrap
|
||||
|
||||
package modfetch
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build (js && wasm) || plan9
|
||||
// +build js,wasm plan9
|
||||
|
||||
// On plan9, per http://9p.io/magic/man2html/2/access: “Since file permissions
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package modload
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package modload
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package renameio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !plan9 && !windows && !js
|
||||
// +build !plan9,!windows,!js
|
||||
|
||||
package renameio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows || darwin
|
||||
// +build windows darwin
|
||||
|
||||
package robustio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows && !darwin
|
||||
// +build !windows,!darwin
|
||||
|
||||
package robustio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build cmd_go_bootstrap
|
||||
// +build cmd_go_bootstrap
|
||||
|
||||
// This code is compiled only into the bootstrap 'go' binary.
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !cmd_go_bootstrap
|
||||
// +build !cmd_go_bootstrap
|
||||
|
||||
// This code is compiled into the real 'go' binary, but it is not
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package web
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package web
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
// This file contains extra hooks for testing the go command.
|
||||
|
||||
//go:build testgo
|
||||
// +build testgo
|
||||
|
||||
package work
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package bio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd
|
||||
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
||||
|
||||
package bio
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Generate builtinlist.go from cmd/compile/internal/gc/builtin/runtime.go.
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// This is a mini version of the stringer tool customized for the Anames table
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build dragonfly || freebsd || linux || netbsd || openbsd
|
||||
// +build dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package main
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build cgo
|
||||
// +build cgo
|
||||
|
||||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !wasm && !windows
|
||||
// +build !wasm,!windows
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build wasm || windows
|
||||
// +build wasm windows
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || linux
|
||||
// +build darwin linux
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !darwin && !linux
|
||||
// +build !darwin,!linux
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !windows
|
||||
// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!windows
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !darwin
|
||||
// +build !darwin
|
||||
|
||||
package ld
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build cgo
|
||||
// +build cgo
|
||||
|
||||
package main
|
||||
|
@ -5,6 +5,7 @@
|
||||
// This file contains a driver.UI implementation
|
||||
// that provides the readline functionality if possible.
|
||||
|
||||
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows) && !appengine && !android
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
|
||||
// +build !appengine
|
||||
// +build !android
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !js
|
||||
// +build !js
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !js
|
||||
// +build !js
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package main
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build amd64 || arm64
|
||||
// +build amd64 arm64
|
||||
|
||||
package aes
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build amd64 || arm64
|
||||
// +build amd64 arm64
|
||||
|
||||
package aes
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !s390x && !ppc64le && !arm64
|
||||
// +build !amd64,!s390x,!ppc64le,!arm64
|
||||
|
||||
package aes
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ppc64le
|
||||
// +build ppc64le
|
||||
|
||||
package aes
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !ppc64 && !ppc64le && !arm64
|
||||
// +build !amd64,!ppc64,!ppc64le,!arm64
|
||||
|
||||
package cipher
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ppc64 || ppc64le
|
||||
// +build ppc64 ppc64le
|
||||
|
||||
package cipher
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !s390x
|
||||
// +build !s390x
|
||||
|
||||
package ecdsa
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build s390x
|
||||
// +build s390x
|
||||
|
||||
package ecdsa
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build amd64 || arm64 || ppc64le
|
||||
// +build amd64 arm64 ppc64le
|
||||
|
||||
package elliptic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !arm64
|
||||
// +build !amd64,!arm64
|
||||
|
||||
package elliptic
|
||||
|
@ -10,6 +10,7 @@
|
||||
// https://link.springer.com/article/10.1007%2Fs13389-014-0090-x
|
||||
// https://eprint.iacr.org/2013/816.pdf
|
||||
|
||||
//go:build amd64 || arm64
|
||||
// +build amd64 arm64
|
||||
|
||||
package elliptic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !s390x && !arm64 && !ppc64le
|
||||
// +build !amd64,!s390x,!arm64,!ppc64le
|
||||
|
||||
package elliptic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ppc64le
|
||||
// +build ppc64le
|
||||
|
||||
package elliptic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build s390x
|
||||
// +build s390x
|
||||
|
||||
package elliptic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !appengine
|
||||
// +build !appengine
|
||||
|
||||
// Package subtle implements functions that are often useful in cryptographic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build appengine
|
||||
// +build appengine
|
||||
|
||||
// Package subtle implements functions that are often useful in cryptographic
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// This program generates md5block.go
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build amd64 || 386 || arm || ppc64le || ppc64 || s390x || arm64
|
||||
// +build amd64 386 arm ppc64le ppc64 s390x arm64
|
||||
|
||||
package md5
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !386 && !arm && !ppc64le && !ppc64 && !s390x && !arm64
|
||||
// +build !amd64,!386,!arm,!ppc64le,!ppc64,!s390x,!arm64
|
||||
|
||||
package md5
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package rand
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package rand
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package rand
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build js && wasm
|
||||
// +build js,wasm
|
||||
|
||||
package rand
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || plan9 || solaris
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd plan9 solaris
|
||||
|
||||
// Unix cryptographically secure pseudorandom number
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build s390x
|
||||
// +build s390x
|
||||
|
||||
package sha1
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build amd64 && (linux || darwin)
|
||||
// +build amd64
|
||||
// +build linux darwin
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build arm || 386 || s390x
|
||||
// +build arm 386 s390x
|
||||
|
||||
package sha1
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !386 && !arm && !s390x && !arm64
|
||||
// +build !amd64,!386,!arm,!s390x,!arm64
|
||||
|
||||
package sha1
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build s390x
|
||||
// +build s390x
|
||||
|
||||
package sha256
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build 386 || amd64 || s390x || ppc64le
|
||||
// +build 386 amd64 s390x ppc64le
|
||||
|
||||
package sha256
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !amd64 && !386 && !s390x && !ppc64le && !arm64
|
||||
// +build !amd64,!386,!s390x,!ppc64le,!arm64
|
||||
|
||||
package sha256
|
||||
|
@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build s390x
|
||||
// +build s390x
|
||||
|
||||
package sha512
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user