module

package
v0.3.0-omnisci Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 3 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 // Import path, such as "github.com/omnisci/golicense"
	Version string // Version like "v1.2.3"
	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.

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.

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)

Jump to

Keyboard shortcuts

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