Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRootModulePath ¶ added in v0.0.85
GetRootModulePath gets the module path from the go.mod at the root of the git repository
func GoResolveVersion ¶ added in v0.0.25
resolve version to a normalized version representation
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"`
Replace []struct {
Old struct {
Path string `json:"Path"`
} `json:"Old"`
New struct {
Path string `json:"Path"`
Version string `json:"Version"`
} `json:"New"`
} `json:"Replace"`
}
func GetModuleInfo ¶
func GetModuleInfo(dir string) (*ModuleInfo, error)
Click to show internal directories.
Click to hide internal directories.