• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

archive/25-Apr-2025-13,48610,806

arena/25-Apr-2025-15264

bufio/25-Apr-2025-4,0633,171

builtin/25-Apr-2025-31155

bytes/25-Apr-2025-6,4525,071

cmd/25-Apr-2025-1,345,2901,090,040

cmp/25-Apr-2025-257189

compress/25-Apr-2025-10,8278,205

container/25-Apr-2025-1,6511,126

context/25-Apr-2025-2,8002,090

crypto/25-Apr-2025-133,827106,694

database/sql/25-Apr-2025-12,8729,304

debug/25-Apr-2025-21,19517,176

embed/25-Apr-2025-857521

encoding/25-Apr-2025-44,25535,094

errors/25-Apr-2025-831592

expvar/25-Apr-2025-1,088853

flag/25-Apr-2025-2,3991,649

fmt/25-Apr-2025-7,5315,638

go/25-Apr-2025-95,44268,099

hash/25-Apr-2025-8,6665,445

html/25-Apr-2025-14,28511,424

image/25-Apr-2025-20,86317,039

index/suffixarray/25-Apr-2025-3,7462,186

internal/25-Apr-2025-121,92488,976

io/25-Apr-2025-5,1403,578

iter/25-Apr-2025-940597

log/25-Apr-2025-8,3085,999

maps/25-Apr-2025-635473

math/25-Apr-2025-53,35139,297

mime/25-Apr-2025-6,0924,787

net/25-Apr-2025-132,78999,945

os/25-Apr-2025-30,63321,916

path/25-Apr-2025-5,6204,256

plugin/25-Apr-2025-309123

reflect/25-Apr-2025-20,92715,594

regexp/25-Apr-2025-16,98414,202

runtime/25-Apr-2025-229,524156,135

slices/25-Apr-2025-4,4553,469

sort/25-Apr-2025-4,0372,762

strconv/25-Apr-2025-9,3547,320

strings/25-Apr-2025-6,3325,005

structs/25-Apr-2025-427

sync/25-Apr-2025-9,7107,355

syscall/25-Apr-2025-178,303148,788

testdata/25-Apr-2025-9,2868,471

testing/25-Apr-2025-11,1298,128

text/25-Apr-2025-12,7489,295

time/25-Apr-2025-13,1559,554

unicode/25-Apr-2025-12,16610,939

unique/25-Apr-2025-513347

unsafe/25-Apr-2025-27212

vendor/25-Apr-2025-114,08195,850

Make.distD25-Apr-2025553 2015

README.vendorD25-Apr-20252.2 KiB5241

all.bashD25-Apr-2025377 148

all.batD25-Apr-2025543 2317

all.rcD25-Apr-2025388 179

bootstrap.bashD25-Apr-20252.3 KiB8653

buildall.bashD25-Apr-20252.1 KiB9357

clean.bashD25-Apr-2025518 2314

clean.batD25-Apr-2025600 3323

clean.rcD25-Apr-2025380 168

cmp.bashD25-Apr-20251.5 KiB6236

go.modD25-Apr-2025238 1410

go.sumD25-Apr-2025740 98

make.bashD25-Apr-20257.6 KiB234118

make.batD25-Apr-20256.2 KiB185164

make.rcD25-Apr-20253.7 KiB12269

race.bashD25-Apr-2025919 3624

race.batD25-Apr-20251.1 KiB5239

run.bashD25-Apr-20251.7 KiB5417

run.batD25-Apr-2025859 4332

run.rcD25-Apr-2025406 189

README.vendor

1Vendoring in std and cmd
2========================
3
4The Go command maintains copies of external packages needed by the
5standard library in the src/vendor and src/cmd/vendor directories.
6
7There are two modules, std and cmd, defined in src/go.mod and
8src/cmd/go.mod. When a package outside std or cmd is imported
9by a package inside std or cmd, the import path is interpreted
10as if it had a "vendor/" prefix. For example, within "crypto/tls",
11an import of "golang.org/x/crypto/cryptobyte" resolves to
12"vendor/golang.org/x/crypto/cryptobyte". When a package with the
13same path is imported from a package outside std or cmd, it will
14be resolved normally. Consequently, a binary may be built with two
15copies of a package at different versions if the package is
16imported normally and vendored by the standard library.
17
18Vendored packages are internally renamed with a "vendor/" prefix
19to preserve the invariant that all packages have distinct paths.
20This is necessary to avoid compiler and linker conflicts. Adding
21a "vendor/" prefix also maintains the invariant that standard
22library packages begin with a dotless path element.
23
24The module requirements of std and cmd do not influence version
25selection in other modules. They are only considered when running
26module commands like 'go get' and 'go mod vendor' from a directory
27in GOROOT/src.
28
29Maintaining vendor directories
30==============================
31
32Before updating vendor directories, ensure that module mode is enabled.
33Make sure that GO111MODULE is not set in the environment, or that it is
34set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.
35
36Requirements may be added, updated, and removed with 'go get'.
37The vendor directory may be updated with 'go mod vendor'.
38A typical sequence might be:
39
40    cd src  # or src/cmd
41    go get golang.org/x/net@master
42    go mod tidy
43    go mod vendor
44
45Use caution when passing '-u' to 'go get'. The '-u' flag updates
46modules providing all transitively imported packages, not only
47the module providing the target package.
48
49Note that 'go mod vendor' only copies packages that are transitively
50imported by packages in the current module. If a new package is needed,
51it should be imported before running 'go mod vendor'.
52