example

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Example HTTP service wired with slogx.

Run:

go run ./example

Then try:

curl -H "X-TRACE-ID: my-trace-1" http://localhost:8080/sum?a=3&b=4&c=5
curl http://localhost:8080/slow
curl http://localhost:8080/fanout   # spawns goroutines; UI shows "go" chips

Open the debugging UI:

http://localhost:8080/_slogx/

Jump to

Keyboard shortcuts

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