package
0.0.0-20220503194200-947c368e6a08
Repository: https://github.com/tobbstr/go.git
Documentation: pkg.go.dev

# Functions

ImportPathFrom returns the import path for path given the moduleName and module root path (root).
IsMainPkg returns true if the filepath given by path is a main Go package, otherwise false.
IsRootPath returns true if path is a module root filepath, otherwise false.
NameFrom returns the module name, otherwise it returns an error.
RootPathFromWorkingDir walks back up the file system until it finds a module root folder and returns its filepath, otherwise it returns an error.