go/src
guoguangwu eec40aae45 maps: use strings.EqualFold in example
Change-Id: I40a9684a9465e844ff1de46601edf23de7b637e3
GitHub-Last-Rev: 15ef023853
GitHub-Pull-Request: golang/go#65541
Reviewed-on: https://go-review.googlesource.com/c/go/+/561855
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2025-11-25 12:24:47 -08:00
..
archive all: remove unnecessary loop variable copies in tests 2025-10-17 13:10:27 -07:00
arena
bufio unicode/utf8: make DecodeRune{,InString} inlineable 2025-09-03 07:04:47 -07:00
builtin
bytes bytes: fix panic in bytes.Buffer.Peek 2025-11-14 11:01:17 -08:00
cmd cmd/go/internal/modfetch: rename State to Fetcher 2025-11-24 20:44:29 -08:00
cmp
compress all: replace Split in loops with more efficient SplitSeq 2025-10-23 07:34:31 -07:00
container
context context: don't return the wrong error when Cause races cancellation 2025-11-24 17:02:35 -08:00
crypto crypto: fix dead links and correct SHA-512 algorithm comment 2025-11-25 11:18:36 -08:00
database/sql database/sql: don't ignore ColumnConverter for unknown input count 2025-11-21 13:25:48 -08:00
debug debug/elf: sync new loong64 relocation types up to LoongArch ELF psABI v20250521 2025-11-17 17:00:42 -08:00
embed
encoding encoding/json: remove linknames 2025-11-20 14:04:37 -08:00
errors errors: add examples for custom Is/As matching 2025-11-21 12:40:11 -08:00
expvar
flag
fmt std: fix printf("%q", int) mistakes 2025-11-14 14:05:53 -08:00
go crypto/hpke: expose crypto/internal/hpke 2025-11-25 10:35:07 -08:00
hash runtime: use 32-bit hash for maps on Wasm 2025-10-24 12:40:49 -07:00
html
image cmd/internal/obj/arm64, image/gif, runtime, sort: use math/bits to calculate log2 2025-11-23 03:49:34 -08:00
index/suffixarray
internal strconv: replace Ryu ftoa with Dragonbox 2025-11-25 11:31:06 -08:00
io all: replace calls to errors.As with errors.AsType 2025-10-13 10:12:48 -07:00
iter iter: fix a tiny doc comment bug 2025-11-06 09:34:49 -08:00
log all: replace Split in loops with more efficient SplitSeq 2025-10-23 07:34:31 -07:00
maps maps: use strings.EqualFold in example 2025-11-25 12:24:47 -08:00
math math: switch s390x math.Pow to generic implementation 2025-11-19 13:32:20 -08:00
mime mime: add missing path for mime types in godoc 2025-11-20 13:02:54 -08:00
net net/url: fix example of Values.Encode 2025-11-25 10:41:33 -08:00
os os/signal: make NotifyContext cancel the context with a cause 2025-11-20 13:01:32 -08:00
path path/filepath: reword documentation for Rel 2025-10-21 14:24:23 -07:00
plugin
reflect reflect: add iterator equivalents for NumField, NumIn, NumOut and NumMethod 2025-11-25 09:18:42 -08:00
regexp unicode/utf8: make DecodeRune{,InString} inlineable 2025-09-03 07:04:47 -07:00
runtime runtime: add GODEBUG=tracebacklabels=1 to include pprof labels in tracebacks 2025-11-24 20:07:56 -08:00
simd [dev.simd] simd: add goexperiment tag to generate.go 2025-11-24 11:47:27 -08:00
slices slices: fix incorrect comment in slices.Insert function documentation 2025-11-23 03:35:46 -08:00
sort cmd/internal/obj/arm64, image/gif, runtime, sort: use math/bits to calculate log2 2025-11-23 03:49:34 -08:00
strconv strconv: move all but Quote to internal/strconv 2025-10-29 11:00:02 -07:00
strings all: remove extra space in the comments 2025-11-03 10:05:39 -08:00
structs
sync [dev.simd] all: merge master (57362e9) into dev.simd 2025-11-13 16:54:07 -05:00
syscall os: ignore O_TRUNC errors on named pipes and terminal devices on Windows 2025-11-04 23:31:35 -08:00
testdata
testing cmd/compile: change testing.B.Loop keep alive semantic 2025-11-21 12:49:20 -08:00
text all: correct name for comments 2025-10-17 09:52:21 -07:00
time internal/itoa, internal/runtime/strconv: delete 2025-10-29 11:00:09 -07:00
unicode unicode/utf8: make DecodeRune{,InString} inlineable 2025-09-03 07:04:47 -07:00
unique unique: fix inconsistent panic prefix in canonmap cleanup path 2025-10-23 13:42:09 -07:00
unsafe
vendor all: update to x/net@bff14c5256 2025-11-24 17:25:21 -08:00
weak runtime: ensure weak handles end up in their own allocation 2025-11-14 11:15:44 -08:00
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod all: update to x/net@bff14c5256 2025-11-24 17:25:21 -08:00
go.sum all: update to x/net@bff14c5256 2025-11-24 17:25:21 -08:00
make.bash cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
make.bat cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
Make.dist
make.rc cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
race.bash runtime/race: add race detector support for linux/riscv64 2025-08-29 23:57:12 -07:00
race.bat
README.vendor
run.bash
run.bat
run.rc

Vendoring in std and cmd
========================

The Go command maintains copies of external packages needed by the
standard library in the src/vendor and src/cmd/vendor directories.

There are two modules, std and cmd, defined in src/go.mod and
src/cmd/go.mod. When a package outside std or cmd is imported
by a package inside std or cmd, the import path is interpreted
as if it had a "vendor/" prefix. For example, within "crypto/tls",
an import of "golang.org/x/crypto/cryptobyte" resolves to
"vendor/golang.org/x/crypto/cryptobyte". When a package with the
same path is imported from a package outside std or cmd, it will
be resolved normally. Consequently, a binary may be built with two
copies of a package at different versions if the package is
imported normally and vendored by the standard library.

Vendored packages are internally renamed with a "vendor/" prefix
to preserve the invariant that all packages have distinct paths.
This is necessary to avoid compiler and linker conflicts. Adding
a "vendor/" prefix also maintains the invariant that standard
library packages begin with a dotless path element.

The module requirements of std and cmd do not influence version
selection in other modules. They are only considered when running
module commands like 'go get' and 'go mod vendor' from a directory
in GOROOT/src.

Maintaining vendor directories
==============================

Before updating vendor directories, ensure that module mode is enabled.
Make sure that GO111MODULE is not set in the environment, or that it is
set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.

Also, ensure that 'go env GOROOT' shows the root of this Go source
tree. Otherwise, the results are undefined. It's recommended to build
Go from source and use that 'go' binary to update its source tree.

Requirements may be added, updated, and removed with 'go get'.
The vendor directory may be updated with 'go mod vendor'.
A typical sequence might be:

    cd src  # or src/cmd
    go get golang.org/x/net@master
    go mod tidy
    go mod vendor

Use caution when passing '-u' to 'go get'. The '-u' flag updates
modules providing all transitively imported packages, not only
the module providing the target package.

Note that 'go mod vendor' only copies packages that are transitively
imported by packages in the current module. If a new package is needed,
it should be imported before running 'go mod vendor'.