Files
main/rules-v0/go-servemux-rest-api-cursorrules-prompt-file/go-api-error-handling-and-response-formatting.mdc
T
2025-02-27 00:04:07 +05:30

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.