Help us shape the future of Go! Take the 2026 Go Developer Survey

shared

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrDependencyPath = terror("unprocessable dependency path")
)

Variables

This section is empty.

Functions

func GetNameFromPath

func GetNameFromPath(path string) (string, error)

func GetVersionFromPath

func GetVersionFromPath(path string) (string, error)

func NewRevisitError

func NewRevisitError(v *Visited) error

func NewUnknownPackageError

func NewUnknownPackageError(name, version string) error

Types

type Component

type Component struct {
	Name     string
	Version  string
	Dev      bool
	Children []*Component
}

type DepTree

type DepTree struct {
	Name         string
	Dependencies []model.Dependency
}

type Visited

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

func (*Visited) AddOrNil

func (v *Visited) AddOrNil(name, version string) *Visited

func (*Visited) Visited

func (v *Visited) Visited(name, version string) bool

Jump to

Keyboard shortcuts

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