webapp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package webapp embeds the compiled Svelte SPA for use by dsc serve --http and the Wails desktop wrapper.

This stub is compiled when the withwebapp build tag is NOT set (e.g. on a fresh checkout without running `make web`). It allows `go build ./...` and `go test ./...` to succeed without the compiled SPA assets in webapp/dist/.

To build with the real SPA embedded:

make web && go build -tags withwebapp ./...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistFS

func DistFS() fs.FS

DistFS returns a stub filesystem for use by Wails's asset server when the compiled SPA is not available (build tag withwebapp is absent).

func Handler

func Handler() http.Handler

Handler returns an http.Handler that serves a stub page when the compiled SPA is not available (build tag withwebapp is absent).

TODO(serve-http): wire into cmd/dsc/serve.go once the HTTP server scaffold lands — mount Handler() at "/" after registering the /api/* routes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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