web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package web serves the browser UI that is built into the binary.

An embed directive cannot reach outside its package, so the UI is embedded from dist/ here rather than from web/dist. Two things live in dist/:

  • dist/index.html is a placeholder page. It is tracked in git and never overwritten, so the package always compiles and a plain `go build` gives a working daemon.
  • dist/app/ is the built Svelte app. `make web` copies web/dist there; it is ignored by git. When dist/app/index.html is in the binary it is served instead of the placeholder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler serves the built app when the binary has one, and the placeholder page otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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