modfetch

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package modfetch knows how to fetch and verify Go modules.

Index

Constants

View Source
const (
	DefaultProxyURL = "https://proxy.golang.org"
)

Variables

View Source
var (
	ProxyURL = DefaultProxyURL
	DryRun   = false
)

Functions

func DownloadModuleZip

func DownloadModuleZip(modulePath, version string) (string, error)

DownloadModuleZip downloads a Go module zip file and verifies it against the SumDB.

func FetchSumDB

func FetchSumDB(modulePath, version string) (string, error)

FetchSumDB fetches the hash of the file tree

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL