module

package
v0.0.0-...-b6cd19b Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

Fetcher fetches a module and calculates its checksum

func NewFetcher

func NewFetcher(cacheDir string) (*Fetcher, error)

NewFetcher creates a new Fetcher

func (*Fetcher) FetchAndVerify

func (f *Fetcher) FetchAndVerify(path, version, expectedChecksum string, isGoMod bool) error

FetchAndVerify fetches a module and verifies its checksum

Jump to

Keyboard shortcuts

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