Documentation ¶
Index ¶
- func Direct(dir string) ([]module.Version, error)
- func FindModFile(dir string) (string, error)
- func JoinPath(modprefix, version, pkgdir string) string
- func ModMajor(modpath string) (string, bool)
- func ModPrefix(modpath string) string
- func SplitPath(modprefix, pkgpath string) (modpath, pkgdir string, ok bool)
- func SplitSpec(spec string) (path, query string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindModFile ¶
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 ¶
JoinPath creates a full package path given a module prefix, version, and package directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.