Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
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.
Click to show internal directories.
Click to hide internal directories.