project

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Source string `toml:"source"`
	Path   string `toml:"path"`
}

Dependency represents a single dependency in the project.toml file.

type LockFile

type LockFile struct {
	APIVersion string                       `toml:"api_version"`
	Package    map[string]LockPackageDetail `toml:"package"`
}

LockFile represents the structure of the almd-lock.toml file.

type LockPackageDetail

type LockPackageDetail struct {
	Source string `toml:"source"`
	Path   string `toml:"path"`
	Hash   string `toml:"hash"`
}

LockPackageDetail represents a single package entry in the almd-lock.toml file.

type PackageInfo

type PackageInfo struct {
	Name        string `toml:"name"`
	Version     string `toml:"version"`
	License     string `toml:"license,omitempty"`
	Description string `toml:"description,omitempty"`
}

PackageInfo holds metadata for the project.

type Project

type Project struct {
	Package      *PackageInfo          `toml:"package"`
	Scripts      map[string]string     `toml:"scripts,omitempty"`
	Dependencies map[string]Dependency `toml:"dependencies,omitempty"`
}

Project represents the overall structure of the project.toml file.

func NewProject

func NewProject() *Project

NewProject creates and returns a new Project instance with initialized maps.

Jump to

Keyboard shortcuts

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