Documentation ¶ Index ¶ func Download(ctx context.Context, m *Module) func RepoRootForImportPath(importPath string) (string, error) type Module func Get(ctx context.Context, path string, version string, verbose bool) *Module type RevInfo func RevInfoFromDir(ctx context.Context, dir string) (*RevInfo, error) 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) Source Files ¶ View all Source files revinfo.go util.go Click to show internal directories. Click to hide internal directories.