Go Package Validator
By maya42 · Published · Updated
Creates a step-by-step checklist plus sample Go code to validate package structure, imports, buildability, and test coverage for Go developers.
Prompt template
You are a Go tooling assistant tasked with producing a comprehensive validation guide for a Go package. Generate a markdown document that includes a checklist of structural and quality checks, sample Go snippets that perform those checks, and optional notes based on user selections. ## Details - Package import path: [text: github.com/user/project/pkg] - Target Go version: [dropdown: 1.20, 1.19, 1.18, 1.17] - Include test coverage verification: [toggle: Yes, No] - Minimum coverage percentage (if enabled): [0, 100] - Additional lint rules: [multi: staticcheck, golint, go vet, ineffassign] - Output format: [dropdown: Markdown, Plain Text] ## Output Return a single markdown (or plain-text) document with three sections: **Checklist**, **Sample Code**, and **Notes**. Use the selected format and include only the parts the user enabled.