modg

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGraph

func BuildGraph()

func NewCommand

func NewCommand() *cobra.Command

Types

type HashMap

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

func NewHashMap

func NewHashMap() *HashMap

func (*HashMap) Add

func (hm *HashMap) Add(p *Pkg)

func (*HashMap) Find

func (hm *HashMap) Find(id PkgID) *Pkg

type Pkg

type Pkg struct {
	IsVisit bool
	// contains filtered or unexported fields
}

func NewPkg

func NewPkg(name string, version string) *Pkg

func (*Pkg) AddDep

func (o *Pkg) AddDep(id PkgID)

func (*Pkg) AddRDep

func (o *Pkg) AddRDep(id PkgID)

func (*Pkg) ID

func (o *Pkg) ID() PkgID

type PkgID

type PkgID string

type Queue

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

func NewQueue

func NewQueue(cap int) *Queue

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) LPop

func (q *Queue) LPop() PkgID

func (*Queue) RPush

func (q *Queue) RPush(v PkgID)

Jump to

Keyboard shortcuts

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