...

Package proxydir

import "golang.org/x/tools/internal/proxydir"
Overview
Index

Overview ▾

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>".

func ToURL

func ToURL(dir string) string

ToURL returns the file uri for a proxy directory.

func WriteModuleVersion

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

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