package
0.0.0-20240624235250-9e89dfb7520d
Repository: https://github.com/tailscale/pkgsitelib.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CreateTestDirectory creates a directory to hold a module when testing local fetching, and returns the directory.
SetupTestClientAndServer returns a *httpClient that can be used to stub requests to remote hosts by redirecting all requests that the client makes to a httptest.Server.
TestDataPath returns a path corresponding to a path relative to the calling test file.
WriteTxtarToTempDir parses data as a txtar archive, and writes the resulting files to a new tempdir created with t.TempDir().
ZipContents creates an in-memory zip of the given contents.
# Constants
BSD0License is the contents of the BSD-0-Clause license.
MITLicense is the contents of the MIT license.
UnknownLicense is not detectable by the licensecheck package.