Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoVersion ¶
func GetParentPackage ¶ added in v0.25.0
GetParentPackage if is submodule project, root package is based on go.mod and add its dir
Types ¶
type ModuleStruct ¶
ModuleStruct contains the relative data of go module, which is the result of the command go list
func GetGoMod ¶
func GetGoMod(workDir string) (*ModuleStruct, error)
GetGoMod is used to determine whether workDir is a go module project through command `go list -json -m`
func GetGoMods ¶ added in v0.28.0
func GetGoMods(workDir string) ([]ModuleStruct, error)
Click to show internal directories.
Click to hide internal directories.