mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor)
When these packages are released as part of Go 1.18, Go 1.16 will no longer be supported, so we can remove the +build tags in these files. Ran go fix -fix=buildtag std cmd and then reverted the bootstrapDirs as defined in src/cmd/dist/buildtool.go, which need to continue to build with Go 1.4 for now. Also reverted src/vendor and src/cmd/vendor, which will need to be updated in their own repos first. Manual changes in runtime/pprof/mprof_test.go to adjust line numbers. For #41184. Change-Id: Ic0f93f7091295b6abc76ed5cd6e6746e1280861e Reviewed-on: https://go-review.googlesource.com/c/go/+/344955 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
This commit is contained in:
parent
ed475fe53b
commit
f229e7031a
834 changed files with 9 additions and 941 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || linux || dragonfly || openbsd || solaris
|
//go:build aix || linux || dragonfly || openbsd || solaris
|
||||||
// +build aix linux dragonfly openbsd solaris
|
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || freebsd || netbsd
|
//go:build darwin || freebsd || netbsd
|
||||||
// +build darwin freebsd netbsd
|
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || linux || darwin || dragonfly || freebsd || openbsd || netbsd || solaris
|
//go:build aix || linux || darwin || dragonfly || freebsd || openbsd || netbsd || solaris
|
||||||
// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris
|
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
//
|
//
|
||||||
//go:build linux
|
//go:build linux
|
||||||
// +build linux
|
|
||||||
|
|
||||||
package bytes_test
|
package bytes_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// The run program is invoked via the dist tool.
|
// The run program is invoked via the dist tool.
|
||||||
// To invoke manually: go tool dist test -run api --no-rebuild
|
// To invoke manually: go tool dist test -run api --no-rebuild
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build go1.1
|
//go:build go1.1
|
||||||
// +build go1.1
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package main_test
|
package main_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build plan9 || windows
|
//go:build plan9 || windows
|
||||||
// +build plan9 windows
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || js || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || js || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd js linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package base
|
package base
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || (solaris && !illumos)
|
//go:build aix || (solaris && !illumos)
|
||||||
// +build aix solaris,!illumos
|
|
||||||
|
|
||||||
// This code implements the filelock API using POSIX 'fcntl' locks, which attach
|
// This code implements the filelock API using POSIX 'fcntl' locks, which attach
|
||||||
// to an (inode, process) pair rather than a file descriptor. To avoid unlocking
|
// to an (inode, process) pair rather than a file descriptor. To avoid unlocking
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris && !windows
|
//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
|
package filelock
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build plan9
|
//go:build plan9
|
||||||
// +build plan9
|
|
||||||
|
|
||||||
package filelock
|
package filelock
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !js && !plan9
|
//go:build !js && !plan9
|
||||||
// +build !js,!plan9
|
|
||||||
|
|
||||||
package filelock_test
|
package filelock_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
|
//go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
|
||||||
// +build darwin dragonfly freebsd illumos linux netbsd openbsd
|
|
||||||
|
|
||||||
package filelock
|
package filelock
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build windows
|
//go:build windows
|
||||||
// +build windows
|
|
||||||
|
|
||||||
package filelock
|
package filelock
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !plan9
|
//go:build !plan9
|
||||||
// +build !plan9
|
|
||||||
|
|
||||||
package lockedfile
|
package lockedfile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build plan9
|
//go:build plan9
|
||||||
// +build plan9
|
|
||||||
|
|
||||||
package lockedfile
|
package lockedfile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
// js does not support inter-process file locking.
|
// js does not support inter-process file locking.
|
||||||
//go:build !js
|
//go:build !js
|
||||||
// +build !js
|
|
||||||
|
|
||||||
package lockedfile_test
|
package lockedfile_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
// js does not support inter-process file locking.
|
// js does not support inter-process file locking.
|
||||||
//go:build !js
|
//go:build !js
|
||||||
// +build !js
|
|
||||||
|
|
||||||
package lockedfile_test
|
package lockedfile_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build cmd_go_bootstrap
|
//go:build cmd_go_bootstrap
|
||||||
// +build cmd_go_bootstrap
|
|
||||||
|
|
||||||
package modfetch
|
package modfetch
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Interactive debugging shell for codehost.Repo implementations.
|
// Interactive debugging shell for codehost.Repo implementations.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
// Go checksum database lookup
|
// Go checksum database lookup
|
||||||
|
|
||||||
//go:build !cmd_go_bootstrap
|
//go:build !cmd_go_bootstrap
|
||||||
// +build !cmd_go_bootstrap
|
|
||||||
|
|
||||||
package modfetch
|
package modfetch
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (js && wasm) || plan9
|
//go:build (js && wasm) || plan9
|
||||||
// +build js,wasm plan9
|
|
||||||
|
|
||||||
// On plan9, per http://9p.io/magic/man2html/2/access: “Since file permissions
|
// On plan9, per http://9p.io/magic/man2html/2/access: “Since file permissions
|
||||||
// are checked by the server and group information is not known to the client,
|
// are checked by the server and group information is not known to the client,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package modload
|
package modload
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build windows
|
//go:build windows
|
||||||
// +build windows
|
|
||||||
|
|
||||||
package modload
|
package modload
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build windows || darwin
|
//go:build windows || darwin
|
||||||
// +build windows darwin
|
|
||||||
|
|
||||||
package robustio
|
package robustio
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !windows && !darwin
|
//go:build !windows && !darwin
|
||||||
// +build !windows,!darwin
|
|
||||||
|
|
||||||
package robustio
|
package robustio
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build cmd_go_bootstrap
|
//go:build cmd_go_bootstrap
|
||||||
// +build cmd_go_bootstrap
|
|
||||||
|
|
||||||
// This code is compiled only into the bootstrap 'go' binary.
|
// This code is compiled only into the bootstrap 'go' binary.
|
||||||
// These stubs avoid importing packages with large dependency
|
// These stubs avoid importing packages with large dependency
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !cmd_go_bootstrap
|
//go:build !cmd_go_bootstrap
|
||||||
// +build !cmd_go_bootstrap
|
|
||||||
|
|
||||||
// This code is compiled into the real 'go' binary, but it is not
|
// This code is compiled into the real 'go' binary, but it is not
|
||||||
// compiled into the binary that is built during all.bash, so as
|
// compiled into the binary that is built during all.bash, so as
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
// +build !windows
|
|
||||||
|
|
||||||
package web
|
package web
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !windows
|
//go:build !windows
|
||||||
// +build !windows
|
|
||||||
|
|
||||||
package web
|
package web
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
// This file contains extra hooks for testing the go command.
|
// This file contains extra hooks for testing the go command.
|
||||||
|
|
||||||
//go:build testgo
|
//go:build testgo
|
||||||
// +build testgo
|
|
||||||
|
|
||||||
package work
|
package work
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !(aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris)
|
//go:build !(aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris)
|
||||||
// +build !aix
|
|
||||||
// +build !darwin
|
|
||||||
// +build !dragonfly
|
|
||||||
// +build !freebsd
|
|
||||||
// +build !js !wasm
|
|
||||||
// +build !linux
|
|
||||||
// +build !netbsd
|
|
||||||
// +build !openbsd
|
|
||||||
// +build !solaris
|
|
||||||
|
|
||||||
package main_test
|
package main_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package main_test
|
package main_test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build cgo
|
//go:build cgo
|
||||||
// +build cgo
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,6 @@
|
||||||
// that provides the readline functionality if possible.
|
// that provides the readline functionality if possible.
|
||||||
|
|
||||||
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows) && !appengine && !android
|
//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
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !js
|
//go:build !js
|
||||||
// +build !js
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !js
|
//go:build !js
|
||||||
// +build !js
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package aes
|
package aes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package aes
|
package aes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !s390x && !ppc64le && !arm64
|
//go:build !amd64 && !s390x && !ppc64le && !arm64
|
||||||
// +build !amd64,!s390x,!ppc64le,!arm64
|
|
||||||
|
|
||||||
package aes
|
package aes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ppc64le
|
//go:build ppc64le
|
||||||
// +build ppc64le
|
|
||||||
|
|
||||||
package aes
|
package aes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !ppc64 && !ppc64le && !arm64
|
//go:build !amd64 && !ppc64 && !ppc64le && !arm64
|
||||||
// +build !amd64,!ppc64,!ppc64le,!arm64
|
|
||||||
|
|
||||||
package cipher
|
package cipher
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ppc64 || ppc64le
|
//go:build ppc64 || ppc64le
|
||||||
// +build ppc64 ppc64le
|
|
||||||
|
|
||||||
package cipher
|
package cipher
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !s390x
|
//go:build !s390x
|
||||||
// +build !s390x
|
|
||||||
|
|
||||||
package ecdsa
|
package ecdsa
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x
|
//go:build s390x
|
||||||
// +build s390x
|
|
||||||
|
|
||||||
package ecdsa
|
package ecdsa
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.
|
// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build amd64 && gc && !purego
|
//go:build amd64 && gc && !purego
|
||||||
// +build amd64,gc,!purego
|
|
||||||
|
|
||||||
package field
|
package field
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 || !gc || purego
|
//go:build !amd64 || !gc || purego
|
||||||
// +build !amd64 !gc purego
|
|
||||||
|
|
||||||
package field
|
package field
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build arm64 && gc && !purego
|
//go:build arm64 && gc && !purego
|
||||||
// +build arm64,gc,!purego
|
|
||||||
|
|
||||||
package field
|
package field
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !arm64 || !gc || purego
|
//go:build !arm64 || !gc || purego
|
||||||
// +build !arm64 !gc purego
|
|
||||||
|
|
||||||
package field
|
package field
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build tablegen
|
//go:build tablegen
|
||||||
// +build tablegen
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || arm64 || ppc64le
|
//go:build amd64 || arm64 || ppc64le
|
||||||
// +build amd64 arm64 ppc64le
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !arm64
|
//go:build !amd64 && !arm64
|
||||||
// +build !amd64,!arm64
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
// https://eprint.iacr.org/2013/816.pdf
|
// https://eprint.iacr.org/2013/816.pdf
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
// Generated by gen_p256_table.go. DO NOT EDIT.
|
// Generated by gen_p256_table.go. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || arm64
|
//go:build amd64 || arm64
|
||||||
// +build amd64 arm64
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !s390x && !arm64 && !ppc64le
|
//go:build !amd64 && !s390x && !arm64 && !ppc64le
|
||||||
// +build !amd64,!s390x,!arm64,!ppc64le
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ppc64le
|
//go:build ppc64le
|
||||||
// +build ppc64le
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x
|
//go:build s390x
|
||||||
// +build s390x
|
|
||||||
|
|
||||||
package elliptic
|
package elliptic
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !appengine
|
//go:build !appengine
|
||||||
// +build !appengine
|
|
||||||
|
|
||||||
// Package subtle implements functions that are often useful in cryptographic
|
// Package subtle implements functions that are often useful in cryptographic
|
||||||
// code but require careful thought to use correctly.
|
// code but require careful thought to use correctly.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build appengine
|
//go:build appengine
|
||||||
// +build appengine
|
|
||||||
|
|
||||||
// Package subtle implements functions that are often useful in cryptographic
|
// Package subtle implements functions that are often useful in cryptographic
|
||||||
// code but require careful thought to use correctly.
|
// code but require careful thought to use correctly.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// This program generates md5block.go
|
// This program generates md5block.go
|
||||||
// Invoke as
|
// Invoke as
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64 || 386 || arm || ppc64le || ppc64 || s390x || arm64
|
//go:build amd64 || 386 || arm || ppc64le || ppc64 || s390x || arm64
|
||||||
// +build amd64 386 arm ppc64le ppc64 s390x arm64
|
|
||||||
|
|
||||||
package md5
|
package md5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !386 && !arm && !ppc64le && !ppc64 && !s390x && !arm64
|
//go:build !amd64 && !386 && !arm && !ppc64le && !ppc64 && !s390x && !arm64
|
||||||
// +build !amd64,!386,!arm,!ppc64le,!ppc64,!s390x,!arm64
|
|
||||||
|
|
||||||
package md5
|
package md5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package rand
|
package rand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build linux || freebsd || dragonfly || solaris
|
//go:build linux || freebsd || dragonfly || solaris
|
||||||
// +build linux freebsd dragonfly solaris
|
|
||||||
|
|
||||||
package rand
|
package rand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build linux || freebsd || dragonfly || solaris
|
//go:build linux || freebsd || dragonfly || solaris
|
||||||
// +build linux freebsd dragonfly solaris
|
|
||||||
|
|
||||||
package rand
|
package rand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (darwin && !ios) || openbsd
|
//go:build (darwin && !ios) || openbsd
|
||||||
// +build darwin,!ios openbsd
|
|
||||||
|
|
||||||
package rand
|
package rand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build js && wasm
|
//go:build js && wasm
|
||||||
// +build js,wasm
|
|
||||||
|
|
||||||
package rand
|
package rand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || plan9 || solaris
|
//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
|
// Unix cryptographically secure pseudorandom number
|
||||||
// generator.
|
// generator.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x
|
//go:build s390x
|
||||||
// +build s390x
|
|
||||||
|
|
||||||
package sha1
|
package sha1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
//go:build amd64 && (linux || darwin)
|
//go:build amd64 && (linux || darwin)
|
||||||
// +build amd64
|
|
||||||
// +build linux darwin
|
|
||||||
|
|
||||||
// Copyright 2016 The Go Authors. All rights reserved.
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build arm || 386 || s390x
|
//go:build arm || 386 || s390x
|
||||||
// +build arm 386 s390x
|
|
||||||
|
|
||||||
package sha1
|
package sha1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !386 && !arm && !s390x && !arm64
|
//go:build !amd64 && !386 && !arm && !s390x && !arm64
|
||||||
// +build !amd64,!386,!arm,!s390x,!arm64
|
|
||||||
|
|
||||||
package sha1
|
package sha1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x
|
//go:build s390x
|
||||||
// +build s390x
|
|
||||||
|
|
||||||
package sha256
|
package sha256
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build 386 || amd64 || s390x || ppc64le
|
//go:build 386 || amd64 || s390x || ppc64le
|
||||||
// +build 386 amd64 s390x ppc64le
|
|
||||||
|
|
||||||
package sha256
|
package sha256
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !386 && !s390x && !ppc64le && !arm64
|
//go:build !amd64 && !386 && !s390x && !ppc64le && !arm64
|
||||||
// +build !amd64,!386,!s390x,!ppc64le,!arm64
|
|
||||||
|
|
||||||
package sha256
|
package sha256
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x
|
//go:build s390x
|
||||||
// +build s390x
|
|
||||||
|
|
||||||
package sha512
|
package sha512
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build amd64
|
//go:build amd64
|
||||||
// +build amd64
|
|
||||||
|
|
||||||
package sha512
|
package sha512
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build s390x || ppc64le
|
//go:build s390x || ppc64le
|
||||||
// +build s390x ppc64le
|
|
||||||
|
|
||||||
package sha512
|
package sha512
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !amd64 && !s390x && !ppc64le
|
//go:build !amd64 && !s390x && !ppc64le
|
||||||
// +build !amd64,!s390x,!ppc64le
|
|
||||||
|
|
||||||
package sha512
|
package sha512
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Generate a self-signed X.509 certificate for a TLS server. Outputs to
|
// Generate a self-signed X.509 certificate for a TLS server. Outputs to
|
||||||
// 'cert.pem' and 'key.pem' and will overwrite existing files.
|
// 'cert.pem' and 'key.pem' and will overwrite existing files.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package tls
|
package tls
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin && !ios
|
//go:build darwin && !ios
|
||||||
// +build darwin,!ios
|
|
||||||
|
|
||||||
// Package macOS provides cgo-less wrappers for Core Foundation and
|
// Package macOS provides cgo-less wrappers for Core Foundation and
|
||||||
// Security.framework, similarly to how package syscall provides access to
|
// Security.framework, similarly to how package syscall provides access to
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build darwin && !ios
|
//go:build darwin && !ios
|
||||||
// +build darwin,!ios
|
|
||||||
|
|
||||||
package macOS
|
package macOS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build dragonfly || freebsd || netbsd || openbsd
|
//go:build dragonfly || freebsd || netbsd || openbsd
|
||||||
// +build dragonfly freebsd netbsd openbsd
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !ios
|
//go:build !ios
|
||||||
// +build !ios
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
// Update the version in root.go and regenerate with "go generate".
|
// Update the version in root.go and regenerate with "go generate".
|
||||||
|
|
||||||
//go:build ios && !x509omitbundledroots
|
//go:build ios && !x509omitbundledroots
|
||||||
// +build ios,!x509omitbundledroots
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// Generates root_ios.go.
|
// Generates root_ios.go.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build js && wasm
|
//go:build js && wasm
|
||||||
// +build js,wasm
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ((darwin && arm64) || (darwin && amd64 && ios)) && x509omitbundledroots
|
//go:build ((darwin && arm64) || (darwin && amd64 && ios)) && x509omitbundledroots
|
||||||
// +build darwin,arm64 darwin,amd64,ios
|
|
||||||
// +build x509omitbundledroots
|
|
||||||
|
|
||||||
// This file provides the loadSystemRoots func when the
|
// This file provides the loadSystemRoots func when the
|
||||||
// "x509omitbundledroots" build tag has disabled bundling a copy,
|
// "x509omitbundledroots" build tag has disabled bundling a copy,
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ((darwin && arm64) || (darwin && amd64 && ios)) && x509omitbundledroots
|
//go:build ((darwin && arm64) || (darwin && amd64 && ios)) && x509omitbundledroots
|
||||||
// +build darwin,arm64 darwin,amd64,ios
|
|
||||||
// +build x509omitbundledroots
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build plan9
|
//go:build plan9
|
||||||
// +build plan9
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
|
//go:build aix || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
|
||||||
// +build aix dragonfly freebsd js,wasm linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package x509
|
package x509
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ignore
|
//go:build ignore
|
||||||
// +build ignore
|
|
||||||
|
|
||||||
// This file is run by the x509 tests to ensure that a program with minimal
|
// This file is run by the x509 tests to ensure that a program with minimal
|
||||||
// imports can sign certificates without errors resulting from missing hash
|
// imports can sign certificates without errors resulting from missing hash
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build gofuzz
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
|
||||||
|
|
||||||
package csv
|
package csv
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue