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 `json:"path"` // Import path, such as "github.com/mitchellh/golicense" Version string `json:"version"` // Version like "v1.2.3" Hash string `json:"hash"` // Hash such as "h1:abcd1234" Replace *Module `json:"replace,omitempty"` // If the module was replaced }
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.
func ParseExeData ¶
ParseExeData parses the raw dependency information from a compiled Go binary's readonly data section. Any unexpected values will return errors.
Click to show internal directories.
Click to hide internal directories.