Documentation
¶
Overview ¶
Package web serves the editor.
The built assets are compiled into the binary. There is no static directory to mount, no sidecar to serve files, and no chance of the UI and the runtime drifting apart in a container — which is the failure mode of every app whose chart mounts its frontend from somewhere else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assets ¶
Assets returns the editor's file system, and whether a real build is present.
A binary built without running the editor build still starts and still serves the API; it just has no UI. Reporting that explicitly beats serving a blank page and letting somebody debug their proxy for an hour.
func Handler ¶
Handler serves the editor under the given prefix.
Unknown paths fall back to index.html so client-side routing works, but only for requests that look like navigation. A missing .js or .css must still 404, or a typo in an asset path returns HTML with a 200 and the browser reports a baffling MIME type error instead of a missing file.
Types ¶
This section is empty.