Requirements
Before installing Mizu, ensure you have:| Requirement | Version | Notes |
|---|---|---|
| Go | 1.22+ | Required for enhanced ServeMux patterns |
| Operating System | Any | Linux, macOS, Windows all supported |
Checking Your Go Version
Installation Methods
Method 1: As a Library (Recommended)
Add Mizu to your existing Go project:main.go:
Method 2: Using the CLI
The Mizu CLI provides project scaffolding and development tools.Install the CLI
$GOPATH/bin (or $HOME/go/bin) is in your PATH:
Verify Installation
Create a New Project
Run in Development Mode
Method 3: Using Templates
Start with a pre-configured project structure:Your First Program
Here’s a complete “Hello World” example:Running the Program
Testing the API
IDE Setup
VS Code
- Install the Go extension
- Open your project folder
- VS Code will prompt to install Go tools - accept all
.vscode/settings.json):
GoLand
- Open your project as a Go project
- GoLand automatically detects go.mod
- Wait for indexing to complete
- Enable “Format on Save”
- Enable “Optimize imports on Save”