quickstart

command
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package quickstart is the minimal go-kit HTTP service.

It demonstrates the recommended "happy path" for new users:

  1. Define plain request/response types.
  2. Write pure business logic (no framework imports).
  3. Wire everything with NewJSONServerWithMiddleware.

Run:

go run ./examples/quickstart

Test:

curl -X POST http://localhost:8080/hello \
     -H "Content-Type: application/json" \
     -d '{"name":"world"}'

curl http://localhost:8080/health

Jump to

Keyboard shortcuts

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