tools: Index | Files

package proxydir

import ""

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


Package Files


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 2021-01-15. Refresh now. Tools for package owners.