Documentation
¶
Overview ¶
Package web carries the built single-page app so `workflow --web` serves it from the one static binary. The build output in dist/ is committed, not only produced at release, because `go install` from the module proxy fetches committed files alone and cannot run the frontend build; every build — `go install` included — embeds it. `task web:build` regenerates it, and `task web:dist:check` fails when the committed copy is stale.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assets ¶
Assets returns the embedded single-page app rooted at its top level. fs.Sub fails only for an invalid path, and "dist" is a constant the embed itself fails the build without, so a failure here is a build defect, which panics, as regexp.MustCompile does for a pattern that cannot compile.
Trade-off TRADE-14: the embedded app is taken to load, as the embedded contract is, so no test runs the panic.
Types ¶
This section is empty.