mod

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleStruct

type ModuleStruct struct {
	Path      string
	Main      bool
	Dir       string
	GoMod     string
	GoVersion string
}

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`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL