packages

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Direct

func Direct(dir string) ([]module.Version, error)

Direct returns a list of all modules that are direct dependencies

func FindModFile

func FindModFile(dir string) (string, error)

FindModFile recursively searches up the directory structure until it finds the go.mod, reaches the root of the directory tree, or encounters an error.

func JoinPath

func JoinPath(modprefix, version, pkgdir string) string

JoinPath creates a full package path given a module prefix, version, and package directory.

func ModMajor

func ModMajor(modpath string) (string, bool)

ModMajor returns the major version in vN format

func ModPrefix

func ModPrefix(modpath string) string

ModPrefix returns the module path with no SIV

func SplitPath

func SplitPath(modprefix, pkgpath string) (modpath, pkgdir string, ok bool)

SplitPath splits the package path into the module path and the package subdirectory. It requires the a module path prefix to figure this out.

func SplitSpec

func SplitSpec(spec string) (path, query string)

SplitSpec splits the path/to/package@query format strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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