Clear routing
Routing follows Go 1.22 patterns and stays compatible withnet/http.
You can define routes by method and use {param} syntax for path parameters.
Simple request and response helpers
Each handler gets a*mizu.Ctx that makes reading and writing data easy.
Composable middleware
Middleware in Mizu is just a function that wraps another handler. You can use it for logging, authentication, or recovery in a few lines of code.Structured logging
Mizu uses Go’sslog for structured logs.
You can log details about requests and responses anywhere in your code.
Graceful shutdown
Mizu handles shutdown signals automatically and finishes active requests before stopping. You don’t need extra code to manage cleanup or race conditions.Static files and templates
Serve static assets or HTML templates directly with built-in helpers.mizu/render provides simple template functions that integrate naturally with Go’s html/template.
Streaming and real-time
Mizu works well for streaming, long responses, and real-time updates. You can send chunks or server-sent events easily.Config and CLI
Mizu supports configuration through.env, JSON, or YAML files, and includes a simple CLI for creating and running projects.
It’s designed for fast iteration, especially when you want to go from idea to running code quickly.