modutil

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, m *Module)

Download Module

func RepoRootForImportPath

func RepoRootForImportPath(importPath string) (string, error)

Types

type Module

type Module struct {
	Path    string
	Version string
	Error   string
	Dir     string
	Sum     string
}

func Get

func Get(ctx context.Context, path string, version string, verbose bool) *Module

Get Module

type RevInfo added in v0.8.3

type RevInfo = modfetch.RevInfo

func RevInfoFromDir added in v0.8.3

func RevInfoFromDir(ctx context.Context, dir string) (*RevInfo, error)

Jump to

Keyboard shortcuts

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