Go Implementation Workflow
Before Starting
- •Run
make checkto verify baseline - •Identify files to modify
Implementation Loop
For each change:
- •Write/update test first
- •Implement minimal code to pass
- •Run
go test ./... - •Run
goimports -w [file] - •Run
go vet ./...
Validation Gate
Before marking complete:
- • All tests pass
- • No vet warnings
- • Imports ordered correctly
- • No unrelated changes
Context Prompt Template
Before implementing: here's the current state of [feature], files involved are [X, Y, Z], change should [specific behavior], must not break [constraint].