- Build-time discovery (D-028, the Caddy pattern): a module self-registers from init(); internal/modules/imports_gen.go (go:generate) blank-imports every module directory, so THE DIRECTORY IS THE SOURCE OF TRUTH - The registry: deterministic registration order, config-backed enable/disable (D-038), required modules, name-prefixed migrations, Mount() into the door - The name-collision guard now also fails a module named for a reserved level-1 workflow (SPEC-009 §13 Q-1) — access · static · api · media · ws · dev — derived from routing.ReservedWorkflows, `home` excepted (D-2) - home: the reference dashboard module, and the core Modules page
11 lines
448 B
Go
11 lines
448 B
Go
// Code generated by go generate; DO NOT EDIT.
|
|
//
|
|
// Produced by `go generate ./internal/modules` (internal/modules/generate.go).
|
|
// Every sub-directory that holds Go source is blank-imported here so its
|
|
// init() self-registration runs at startup (D-028): THE DIRECTORY IS THE
|
|
// SOURCE OF TRUTH for the module set. Add a directory and re-run go generate.
|
|
package modules
|
|
|
|
import (
|
|
_ "git.lohmar.co.uk/cclohmar/NextMyDay/internal/modules/home"
|
|
)
|