Installation¶
Requirements¶
- Go 1.22 or later
- Any operating system (Linux, macOS, Windows)
Install¶
Add Marten to your Go module:
Verify Installation¶
Create a simple test file:
package main
import (
"fmt"
"github.com/gomarten/marten"
)
func main() {
app := marten.New()
fmt.Println("Marten installed successfully!")
_ = app
}
Run it:
Import Paths¶
// Core framework
import "github.com/gomarten/marten"
// Built-in middleware
import "github.com/gomarten/marten/middleware"
Version Pinning¶
For production, pin to a specific version in your go.mod:
Updating¶
To update to the latest version:
Zero Dependencies¶
Marten has zero external dependencies. It only uses Go's standard library, which means:
- ✅ No supply chain risks
- ✅ No version conflicts
- ✅ Smaller binary sizes
- ✅ Faster builds
- ✅ Easier auditing
Next Steps¶
Now that Marten is installed, let's build something: