WindsurfGoArchitecture
Go Windsurf Rules
Windsurf rules for Go: hexagonal architecture, clean code, observability, and production Go patterns.
.windsurfrules
- Apply hexagonal architecture: separate domain, application, and infrastructure layers - Use wire or fx for dependency injection in large applications - Add OpenTelemetry traces and metrics from the start; it's hard to add later - Use pgx directly for PostgreSQL; avoid GORM for performance-critical code - Use goreleaser for building and publishing Go binaries and Docker images - Write integration tests with testcontainers-go for real database testing - Use golangci-lint with a curated config; commit the .golangci.yml file - Use go work for multi-module monorepos
How to use with Windsurf
Create a `.windsurfrules` file in your project root. Windsurf's Cascade AI applies these rules automatically.
#go#windsurf#architecture#observability#coding-rules
Related Rules
TypeScript Windsurf Rules
WindsurfTypeScript
Windsurf rules for TypeScript: strict type safety, functional patterns, and modern TypeScript conventions.
Code Style
typescript · windsurfCopy Ready
React Windsurf Rules
WindsurfReact
Windsurf rules for React: modern patterns, performance, and scalable React architecture.
Architecture
react · windsurfCopy Ready
Rust Windsurf Rules
WindsurfRust
Windsurf rules for Rust: async Rust, WASM, systems programming, and production Rust patterns.
Architecture
rust · windsurfCopy Ready
Docker Windsurf Rules
WindsurfDocker
Windsurf rules for Docker and container architecture: compose patterns, registries, and microservice conventions.
Architecture
docker · windsurfCopy Ready