Documentation
¶
Overview ¶
Package scaffold - the starting files of a new module or theme (app module new, app theme new): a module of its own Go module with a page, its test, styles, translations and README; a theme with its manifest, stylesheet, translations and README. Both work as written: the module builds and passes its test, the theme passes app theme check.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModuleFiles ¶
ModuleFiles - a new module's files by their path in its directory.
func ModuleName ¶
ModuleName - the machine name a module of Go module path gets by default: its last part, without a "kosatka-module-" or "kosatka-" prefix, "-" as "_".
func ThemeFiles ¶
ThemeFiles - a new theme's files by their path in its directory.
Types ¶
type Module ¶
type Module struct {
Path, Name, EngineVersion, GoVersion string
}
Module - what a new module is: its Go module path, its machine name ("" - from the path's last part: "kosatka-module-notes" → "notes"), the engine release it requires ("v0.1.11"; "" - none: go mod tidy takes the latest) and the Go version of its go.mod ("1.27").