Go.instructions
---
description: Go standards for services and CLIs.
applyTo: "**/*.go"
---
# Go Instructions
## Style
- Follow `gofmt`.
- Prefer small packages with clear responsibilities.
## Errors
- Wrap errors with context.
- Prefer sentinel errors only when callers need to branch.
## Concurrency
- Avoid goroutine leaks.
- Use contexts for cancellation and timeouts.
## Testing
- Use table-driven tests.
- Avoid reliance on wall clock time.when to use it
Community prompt sourced from the open-source GitHub repo ReactSphere/awesome-copilot-agents (MIT). A "Go.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
ReactSphere/awesome-copilot-agents · MIT