Wright AI writes godoc-style comments for every undocumented Go function — following the convention that the first sentence is the summary — then enforces coverage in CI.
See it in action
Wright AI reads the function body, its callers, and its callees — generating documentation that reflects real intent, not just syntax.
func (c *Client) ExecuteWithRetry(ctx context.Context, req *Request, maxAttempts int) (*Response, error) {
var lastErr error
for attempt := 0; attempt < maxAttempts; attempt++ {
resp, err := c.execute(ctx, req)
if err == nil { return resp, nil }
if !isRetryable(err) { return nil, err }
lastErr = err
}
return nil, fmt.Errorf("all %d attempts failed: %w", maxAttempts, lastErr)
}// ExecuteWithRetry sends req and retries on retryable errors with
// exponential backoff, up to maxAttempts total attempts.
//
// Returns the first successful Response, or an error wrapping
// the last failure if all attempts are exhausted.
func (c *Client) ExecuteWithRetry(ctx context.Context, req *Request, maxAttempts int) (*Response, error) {How it works
WrightAI generates, verifies and maintains documentation — so docs stay accurate as your Go codebase evolves.
Comparison
Most tools for Go documentation either render what exists or suggest one comment at a time. Wright does neither.
Reads and formats existing godoc — does not generate comments for undocumented functions.
Exports existing docs to Markdown/Swagger. Still requires you to author every comment.
Suggests one comment at a time. No project-wide coverage report or CI gate.
Batch-generates godoc documentation across your entire Go codebase. Tracks coverage. Detects drift on every commit. Feeds live docs to AI tools via MCP. Free to start.
Free VS Code extension · CLI · GitHub Action · MCP server.
No credit card required.