Clear routing
Routing follows Go 1.22 patterns and remains compatible withnet/http.
You can define routes by method and use {param} syntax for path parameters.
http.Handler when needed.
Simple request and response helpers
Each handler receives a*mizu.Ctx that makes it easy to read input and write responses.
Composable middleware
Middleware in Mizu is a simple function that wraps another handler. Use it for logging, authentication, recovery, or any shared behavior.Structured logging
Mizu uses Go’sslog for structured logs.
You can log request and response details anywhere in your code.
Graceful shutdown
Mizu automatically handles shutdown signals and waits for active requests to finish before stopping. You do not need extra code to handle cleanup or race conditions.Static files and templates
You can serve static assets or HTML templates using built-in helpers.mizu/render package integrates with Go’s html/template to make rendering simple and fast.
Streaming and real-time
Mizu supports streaming and real-time communication. You can send chunks of data or use Server-Sent Events with minimal setup.Config and CLI
Mizu supports configuration using.env, JSON, or YAML files.
It includes a simple command-line tool for creating and running projects, helping you move quickly from idea to running code.