Documentation
¶
Overview ¶
Package frameworkinfo owns the framework module identity used by development tooling. Go requirements remain owned by the selected module's go.mod.
Index ¶
Constants ¶
View Source
const GenerationManifest = ".foundry-gen.json"
View Source
const ModulePath = "github.com/weiloon1234/Foundry-Go"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct {
Version string
}
Build is the framework module version linked into the running tool. Version is empty for development builds and local directory replacements, whose source cannot be identified by a module version.
func CurrentBuild ¶
func CurrentBuild() Build
CurrentBuild reads the running binary's build information. A tool built by `go tool foundry` records the framework as a dependency of the consumer; an installed tool records it as the main module.
type Selection ¶
type Selection struct {
// Main reports that the consumer is the framework module itself.
Main bool
// Version is the selected module version, or its versioned replacement.
Version string
// Local reports a directory replacement.
Local bool
}
Selection is the framework module selected by a consumer's build list.
Click to show internal directories.
Click to hide internal directories.