BMAD-METHOD/.claude/rules/go-servemux-rest-api-cursor.../go-api-error-handling-and-r...

6 lines
298 B
Plaintext

---
description: This rule ensures proper error handling, status codes, and JSON response formatting in Go API development.
globs: /*/**/*_api.go
---
- Implement proper error handling, including custom error types when beneficial.
- Use appropriate status codes and format JSON responses correctly.