db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Modules map[string]*Module
	// contains filtered or unexported fields
}

func Create

func Create(ch <-chan parser.Result, prefixes []string) (*DB, chan struct{}, chan error)

func New

func New() *DB

func (*DB) Module

func (db *DB) Module(name string) *Module

type Module

type Module struct {
	ID        uint8
	Name      string
	GoVersion string

	Requires map[string]*Require
	UsedBy   map[string]*Module
	// contains filtered or unexported fields
}

func (*Module) Require

func (m *Module) Require(mod *Module, ver string, indirect bool)

func (*Module) Use

func (m *Module) Use(mod *Module)

type Require

type Require struct {
	*Module
	Version  string
	Indirect bool
}

Jump to

Keyboard shortcuts

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