basic

command
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command basic demonstrates mamori: loading typed config from the environment and a file, then watching for changes and reacting without a restart.

Run it:

LOG_LEVEL=debug WORKERS=8 go run ./examples/basic

While it runs it rotates the token file itself so you can see mamori reconcile the change live. You can also edit the printed file yourself.

Jump to

Keyboard shortcuts

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