ui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ui embeds the leather DevTools / overview web UI so that `leather serve` can serve it at /ui/* from the binary, with no need for the operator to know where the repository's ui/ directory lives.

Files embedded:

  • devtools.html, index.html
  • js/**/*.{js,css} (entire js/ tree, including the devtools/ subdir and any leather-*.js helpers)

The exported FS is rooted at the ui/ directory: index.html is at the root, so http.FileServer(http.FS(Assets)) serves "/" as index.html and "/devtools.html" / "/js/..." as the rest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets() embed.FS

Assets is the embedded UI file system, rooted at this ui/ directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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