Documentation
¶
Overview ¶
Package spec reads and validates platformgo.yaml, the description of a project.
Index ¶
Constants ¶
View Source
const FileName = "platformgo.yaml"
FileName is the description file in the project root.
View Source
const SchemaVersion = 1
SchemaVersion is the file format this platformgo understands.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Schema int `yaml:"schema"`
Platform string `yaml:"platform"`
Project Project `yaml:"project"`
Modules map[string]map[string]any `yaml:"modules"`
}
File is the content of platformgo.yaml.
func (*File) EnabledModules ¶
EnabledModules returns modules in dependency order: dependencies come first. The order is stable, so generated files do not change between runs.
Click to show internal directories.
Click to hide internal directories.