pkg

package
v0.0.0-...-d9a84dc Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(pkg PackageInfo) error

Types

type PackageInfo

type PackageInfo struct {
	Name    string
	Version string
}

func Parse

func Parse(arg string) (PackageInfo, error)

type PackageMeta

type PackageMeta struct {
	DistTags map[string]string `json:"dist-tags"`
	Versions map[string]struct {
		Dist struct {
			Tarball string `json:"tarball"`
		} `json:"dist"`
		Dependencies map[string]string `json:"dependencies"`
	} `json:"versions"`
}

Jump to

Keyboard shortcuts

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