Documentation ¶
Overview ¶
Package mod provides helpers for querying module information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { Path string // module path Version string // module version Dir string // directory holding files for this module, if any GoMod string // path to go.mod file for this module, if any }
Info holds module information. It is a subset of the information returned by "go list -json" in the Module struct. See go help list for details.
type License ¶
type License struct { // Path is the path to the license relative // to the root of the repository. Path string // Text is the text of the license. Text []byte // Cover is the license check information // for the license. Cover licensecheck.Coverage }
License holds a package's license information.
Click to show internal directories.
Click to hide internal directories.