module

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 1 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/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.

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