go-internal – github.com/rogpeppe/go-internal Directories

go-internal/ directory

Directories

PathSynopsis
cachePackage cache implements a build artifact cache.
cmd
cmd/testscript
cmd/txtar-addmodThe txtar-addmod command adds a module as a txtar archive to the a testdata module directory as understood by the goproxytest package (see https://godoc.org/github.com/rogpeppe/go-internal/goproxytest).
cmd/txtar-cThe txtar-c command archives a directory tree as a txtar archive printed to standard output.
cmd/txtar-goproxyThe txtar-goproxy command runs a Go module proxy from a txtar module directory (as manipulated by the txtar-addmod command).
cmd/txtar-xThe txtar-x command extracts a txtar archive to a filesystem.
diff
dirhashPackage dirhash is a thin forwarding layer on top of golang.org/x/mod/sumdb/dirhash.
fmtsortPackage fmtsort provides a general stable ordering mechanism for maps, on behalf of the fmt and text/template packages.
goproxytestPackage goproxytest serves Go modules from a proxy server designed to run on localhost during tests, both to make tests avoid requiring specific network servers and also to make them significantly faster.
gotooltestPackage gotooltest implements functionality useful for testing tools that use the go command.
imports
internal
lockedfilePackage lockedfile creates and manipulates files whose contents should only change atomically.
lockedfile/internal
modfilePackage modfile implements parsing and formatting for go.mod files.
modulePackage module is a thin forwarding layer on top of golang.org/x/mod/module.
parPackage par implements parallel execution helpers.
renameioPackage renameio writes files atomically by renaming temporary files.
robustioPackage robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout.
semverPackage semver is a thin forwarding layer on top of golang.org/x/mod/semver.
testenvPackage testenv provides information about what functionality is available in different testing environments run by the Go team.
testscriptPackage testscript provides support for defining filesystem-based tests by creating scripts in a directory.
testscript/internal
txtarPackage txtar implements a trivial text-based file archive format.
Version
v1.13.0
Published
Sep 20, 2024
Platform
windows/amd64
Last checked
now

Tools for package owners.