Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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`
Click to show internal directories.
Click to hide internal directories.