What it does
A Cursor rules file for building REST APIs in Go with the standard net/http package and the ServeMux introduced in Go 1.22. It asks the AI to plan the structure first, then write complete code with error handling, status codes, input validation, logging, middleware and authentication where appropriate.
Use cases
- 01Scaffold a REST endpoint with input validation
- 02Add logging and auth middleware to a Go API
- 03Plan API routes before writing the handlers