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

node

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageInfo

type PackageInfo struct {
	Name       string     `json:"name"`
	Version    string     `json:"version"`
	Repository string     `json:"repository"`
	Workspaces Workspaces `json:"workspaces"`

	Path     string
	RootPath string
}

type PackageService

type PackageService interface {
	ReadPackageInfo(filename string) (*PackageInfo, error)
	GetWorkspaces(p *PackageInfo) ([]*PackageInfo, error)
}

func NewPackageService

func NewPackageService(rootPath string) PackageService

type Workspaces

type Workspaces struct {
	Value []string
}

func (*Workspaces) UnmarshalJSON

func (w *Workspaces) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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