Help us shape the future of Go! Take the 2026 Go Developer Survey

web

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

func Assets() fs.FS

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL