Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replace ¶
Replace checks if the given directory exists and contains a valid Go module, returns the absolute path of the directory and the module path
func ResolveModPathFromPossibleDir ¶ added in v0.0.17
Types ¶
type ModuleInfo ¶
type ModuleInfo struct {
Module struct {
Path string `json:"Path"`
} `json:"Module"`
Require []struct {
Path string `json:"Path"`
Version string `json:"Version"`
} `json:"Require"`
}
func GetModuleInfo ¶ added in v0.0.17
func GetModuleInfo(dir string) (*ModuleInfo, error)
Click to show internal directories.
Click to hide internal directories.