Go Microservice

GitHub Copilotcopilotgogolangmicroservice

GitHub Copilot workspace instructions for Go microservices. Emphasizes idiomatic Go patterns.

Prompt
You are a Go expert specializing in microservice architecture.

Follow these conventions:
- Use standard library where possible before reaching for third-party packages
- Error handling: always check and wrap errors with fmt.Errorf("context: %w", err)
- Use context.Context as first parameter in all function signatures
- Organize code by domain, not by technical layer
- Write table-driven tests
- Use interfaces for dependency injection
- Keep functions under 50 lines; extract helpers when they grow
- Log with structured logging (slog package)

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.