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

..20-Mar-2020-

archive/H20-Mar-2020-4,7013,226

bufio/H20-Mar-2020-1,182777

builtin/H20-Mar-2020-26349

bytes/H20-Mar-2020-1,7621,226

cmd/H20-Mar-2020-950,833796,436

compress/H20-Mar-2020-5,5323,807

container/H20-Mar-2020-503298

context/H20-Mar-2020-555280

crypto/H20-Mar-2020-57,59743,456

database/sql/H20-Mar-2020-4,7312,901

debug/H20-Mar-2020-12,5189,899

encoding/H20-Mar-2020-20,19414,559

errors/H20-Mar-2020-17466

expvar/H20-Mar-2020-368257

flag/H20-Mar-2020-1,043604

fmt/H20-Mar-2020-3,3862,346

go/H20-Mar-2020-34,32723,273

hash/H03-May-2022-6,6303,817

html/H20-Mar-2020-6,8555,074

image/H20-Mar-2020-9,8027,321

index/suffixarray/H20-Mar-2020-3,1211,670

internal/H20-Mar-2020-19,05613,611

io/H20-Mar-2020-1,148663

log/H20-Mar-2020-749468

math/H20-Mar-2020-28,54619,176

mime/H20-Mar-2020-2,3791,710

net/H20-Mar-2020-50,04634,461

os/H20-Mar-2020-9,8526,310

path/H20-Mar-2020-1,8441,234

plugin/H20-Mar-2020-246120

reflect/H20-Mar-2020-6,7214,465

regexp/H20-Mar-2020-6,1244,455

runtime/H20-Mar-2020-141,13195,914

sort/H20-Mar-2020-1,156696

strconv/H20-Mar-2020-4,3933,302

strings/H20-Mar-2020-2,1341,486

sync/H20-Mar-2020-2,0581,066

syscall/H20-Mar-2020-157,055132,075

testing/H20-Mar-2020-3,5562,358

text/H20-Mar-2020-6,3754,324

time/H20-Mar-2020-5,2293,503

unicode/H20-Mar-2020-9,0908,470

unsafe/H20-Mar-2020-2066

vendor/golang.org/x/H03-May-2022-84,86870,797

Make.distH A D20-Mar-2020553 2015

README.vendorH A D20-Mar-20202.2 KiB5543

all.bashH A D20-Mar-2020407 1610

all.batH A D20-Mar-2020726 2722

all.rcH A D20-Mar-2020385 179

bootstrap.bashH A D20-Mar-20203.7 KiB12272

buildall.bashH A D20-Mar-20202 KiB9361

clean.bashH A D20-Mar-2020521 2314

clean.batH A D20-Mar-2020565 3223

clean.rcH A D20-Mar-2020380 168

cmp.bashH A D20-Mar-20201.5 KiB6236

go.modH A D20-Mar-2020275 118

go.sumH A D20-Mar-20201.5 KiB1615

iostest.bashH A D20-Mar-20201.9 KiB7044

make.bashH A D20-Mar-20206.8 KiB220114

make.batH A D20-Mar-20203.9 KiB135118

make.rcH A D20-Mar-20203.1 KiB11159

race.bashH A D20-Mar-20201,021 5037

race.batH A D20-Mar-20201 KiB5339

run.bashH A D20-Mar-20202.1 KiB6017

run.batH A D20-Mar-20201.1 KiB5442

run.rcH A D20-Mar-2020435 177

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