modinfo

package
v0.0.0-...-6639843 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelFromGoMod

func NewChannelFromGoMod(src *gomod.Module) chan Result

NewChannelFromGoMod channel over go.mod dependencies (requirements and versioned replaces)

func NewChannelFromSource

func NewChannelFromSource(fileName string, src io.Reader) chan Result

NewChannelFromSource run over file with 'module@version' or just 'module' content at each line (empty lines are ignored)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error internal error

func (Error) Error

func (e Error) Error() string

type Latest

type Latest struct {
	Path string
}

Latest module

type Module

type Module struct {
	Path    string
	Version string
}

Module of certain version

type Result

type Result interface {
	// contains filtered or unexported methods
}

Result type safe scanning result

Jump to

Keyboard shortcuts

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