Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotAGoyaveProject returned when the go project found doesn't import Goyave ErrNotAGoyaveProject = errors.New("Current project doesn't import Goyave") // ErrNoGoMod returned when no go.mod file can be found ErrNoGoMod = errors.New("No go.mod found") )
Functions ¶
func FindDependency ¶
FindDependency find the required dependency identified by the given dependencyPath (like "golang.org/x/text" or "rsc.io/quote/v2") in the given modFile requires, or nil.
func FindGoyaveRequire ¶
FindGoyaveRequire find the first Goyave occurrence in the given modFile's requires, or nil.
func FindParentModule ¶
func FindParentModule() string
FindParentModule tries to find the ascending relative path to the nearest directory containing a "go.mod" file, or an empty string.
func ProjectNameFromModuleName ¶
ProjectNameFromModuleName extract project name from a module name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.