Documentation
¶
Overview ¶
Package scaffold renders a new builder project.
The sequence matters and is not arbitrary:
- togo new — the base app (Go + TanStack + auth + postgres)
- fix DB_DRIVER — togo writes "postgres"; its own plugin registers "pgx"
- overlay _project — builder's routes, libs, plugin wiring, migrations
- overlay _claude — the agent operating system
- go.work + tidy — resolve the plugin from the working tree
- createdb+migrate — schema before anything tries to read it
- seed admin — an app with no way in is not scaffolded, it is bricked
- preflight — tell the operator what is missing BEFORE they start
Steps 6–8 are skippable for CI, which wants files on disk and nothing else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Name string
Dir string
Module string
AdminEmail string
DBName string
// PluginPath points go.work at a local checkout instead of a published tag.
// Empty means resolve the published module.
PluginPath string
SkipDB bool
SkipTidy bool
Force bool
Out func(format string, a ...any)
}
Click to show internal directories.
Click to hide internal directories.