modfetch

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 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
)

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