Go Docstring and API Docs — ChatGPT Prompt
Generate accurate docstrings and usage examples in Go with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Coding prompt series
Generate idiomatic docstrings and API comments for Go, Java, Python, Ruby, SQL, and Swift code.
6 prompts in this series. Each prompt page shows the full prompt, the variables to fill in, the models it was tested with, and example output.
All prompts in this series
Generate accurate docstrings and usage examples in Go with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Generate accurate docstrings and usage examples in Java with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Generate accurate docstrings and usage examples in Python with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Generate accurate docstrings and usage examples in Ruby with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Generate accurate docstrings and usage examples in SQL with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Generate accurate docstrings and usage examples in Swift with clear constraints and verification steps. Why it matters: clear steps stop silent bugs later.
Coding prompts
32 prompts · Prompts for everyday engineering work: debugging, refactors, code review, test suites, migrations, CI pipelines, threat models, and system design.
6 prompts · Turn a commit log into a readable changelog and release notes, with language-specific versions.
6 prompts · Plan a feature flag rollout, kill switch, and cleanup, with one prompt per language.
6 prompts · Design a GraphQL schema, resolvers, and pagination for Go, Java, Python, Ruby, SQL, or Swift backends.
6 prompts · Logging, metrics, tracing, and alerting checklists for a service, with one prompt per language.
5 prompts · Write an architecture decision record for a C, Kotlin, PHP, Rust, or TypeScript codebase: context, options, decision, and consequences.
5 prompts · Design a role-based access control matrix and enforcement plan, with one prompt per language.
5 prompts · Design a Kafka consumer with retries, idempotency, and dead-letter handling, with one prompt per language.
5 prompts · Write a load test plan with scenarios, targets, and pass/fail thresholds for Go, Java, Python, Ruby, or Swift services.
5 prompts · Design API rate limiting (token bucket, sliding window, quotas, and 429 handling) for Go, Java, Python, SQL, or Swift.