package proxydir
import "golang.org/x/tools/internal/proxydir"
Package proxydir provides functions for writing module data to a directory in proxy format, so that it can be used as a module proxy by setting GOPROXY="file://<dir>".
Index ¶
- func ToURL(dir string) string
- func WriteModuleVersion(rootDir, module, ver string, files map[string][]byte) (rerr error)
Functions ¶
func ToURL ¶
ToURL returns the file uri for a proxy directory.
func WriteModuleVersion ¶
WriteModuleVersion creates a directory in the proxy dir for a module.
Source Files ¶
proxydir.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 8 hours ago –
Tools for package owners.