package proxydir

import "cuelang.org/go/internal/golangorgx/tools/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

Functions

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.

Source Files

proxydir.go

Version
v0.12.0 (latest)
Published
Jan 30, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
8 hours ago

Tools for package owners.