module

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 2 Imported by: 0

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

func ParseExeData(raw string) ([]Module, error)

ParseExeData parses the raw dependency information from a compiled Go binary's readonly data section. Any unexpected values will return errors.

func (*Module) String

func (m *Module) String() string

String returns a human readable string format.

Jump to

Keyboard shortcuts

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