tools: golang.org/x/tools/internal/proxydir Index | Files

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

Package Files

proxydir.go

func ToURL Uses

func ToURL(dir string) string

ToURL returns the file uri for a proxy directory.

func WriteModuleVersion Uses

func WriteModuleVersion(rootDir, module, ver string, files map[string][]byte) (rerr error)

WriteModuleVersion creates a directory in the proxy dir for a module.

Package proxydir imports 8 packages (graph) and is imported by 4 packages. Updated 2020-10-28. Refresh now. Tools for package owners.