Skip to content

Commit 5012f26

Browse files
mpywclaude
andcommitted
docs: add TIP about passing flags with go vet -vettool
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bd183ef commit 5012f26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ This is useful for wrapper functions that abstract away goroutine spawning patte
231231

232232
## Flags
233233

234+
> [!TIP]
235+
> When using `go vet -vettool`, pass flags directly:
236+
> ```bash
237+
> go vet -vettool=$(which goroutinectx) -goroutine-deriver='pkg.Func' ./...
238+
> ```
239+
234240
### `-goroutine-deriver`
235241
236242
Require goroutines to call a specific function to derive context. Useful for APM libraries like New Relic.

0 commit comments

Comments
 (0)