Go Docs

Go documentation conventions — a doc comment on every exported function, struct, type, and package, package comments in a dedicated doc.go for multi-file packages, godoc style (complete sentences beginning with the identifier's name), and LLM-ready CLI reference generation for cobra tools via a docgen helper built on cobra/doc. Use when writing or reviewing doc comments or godoc in Go code, adding a doc.go or writing a package comment for a Go package, documenting an exported Go API, package, function, or struct, deciding where a package comment or doc.go belongs, or generating markdown CLI documentation for a cobra-based Go tool. Not for OpenAPI/REST API specs.

bitwise-media-group 034f068 2 files · 5.8 KB Updated

File contents

bitwise-media-group/skills/tree/main/plugins/golang/skills/go-docs commit 034f0688b6

Frequently asked questions

npx skillmds@latest add bitwise-media-group/go-docs