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

v5

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeDepTree

func AnalyzeDepTree(lock *Lockfile) []shared.DepTree

Types

type Importer

type Importer struct {
	Dependencies    map[string]string `json:"dependencies" yaml:"dependencies"`
	DevDependencies map[string]string `json:"devDependencies" yaml:"devDependencies"`
}

type Lockfile

type Lockfile struct {
	Importers       map[string]*Importer `json:"importers" yaml:"importers"`
	Dependencies    map[string]string    `json:"dependencies" yaml:"dependencies"`
	DevDependencies map[string]string    `json:"devDependencies" yaml:"devDependencies"`
	Packages        map[string]*Pkg      `json:"packages" yaml:"packages"`
}

func ParseLockfile

func ParseLockfile(data []byte) (*Lockfile, error)

type Pkg

type Pkg struct {
	Name         string            `json:"name" yaml:"name"`
	Version      string            `json:"version" yaml:"version"`
	Dependencies map[string]string `json:"dependencies" yaml:"dependencies"`
	Dev          bool              `json:"dev" yaml:"dev"`
}

Jump to

Keyboard shortcuts

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