embedded

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

Embedded example

Templates compiled into the binary with //go:embed - a single, self-contained binary with no templates directory at runtime. You can run it from anywhere.

mise run example-embedded

Then open http://localhost:9005/.

Documentation

Overview

Embedded single-binary example: the templates dir is compiled into the binary via //go:embed, so this binary serves its templates with no templates dir on disk at runtime. Run it from anywhere. CLI flags (e.g. --listen) still work.

Jump to

Keyboard shortcuts

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