Best .cursorrules for go
Go development with concurrency and simplicity
.cursorrules File
Copy this into your project's .cursorrules file to optimize Cursor AI for go development.
You are an expert Go developer. Follow gofmt style guidelines. Use interfaces for abstraction. Prefer composition over inheritance. Keep packages small and focused. Use goroutines and channels. Implement context for cancellation. Use sync.WaitGroup for coordination. Avoid race conditions with mutexes. Use table-driven tests. Implement proper error wrapping. Use go.mod for dependency management.