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

packagejson

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPackageVersion

func FindPackageVersion(name string, version string) (string, error)

Types

type Constraints

type Constraints map[string]string

type ValidationError

type ValidationError struct {
	Name                 string
	PackageJsonVersion   string
	Constraint           string
	VersionToBeInstalled string
}

type ValidationResult

type ValidationResult struct {
	Success bool
	Errors  []*ValidationError
}

type Validator

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

func NewValidator

func NewValidator(runtimeName string) *Validator

func (*Validator) Validate

func (dv *Validator) Validate(dependencies map[string]string) (*ValidationResult, error)

Jump to

Keyboard shortcuts

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