Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
Path string // Import path, such as "github.com/whitehatsec/glicense"
Version string // Version like "v1.2.3"
Indirect bool
Hash string // Hash such as "h1:abcd1234"
}
Module represents a single Go module.
Depending on the source that this is parsed from, fields may be empty. All helper functions on Module work with zero values. See their associated documentation for more information on exact behavior.
type SortByPath ¶
type SortByPath []Module
SortByPath implements sort.Interface to sort a slice of Module by path.
func (SortByPath) Len ¶
func (s SortByPath) Len() int
func (SortByPath) Less ¶
func (s SortByPath) Less(i, j int) bool
func (SortByPath) Swap ¶
func (s SortByPath) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.