diff options
author | Teddy Wing | 2023-05-18 13:16:49 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-18 13:16:49 +0200 |
commit | 4859ae4083e5035cc75527423fe5be69a1201b64 (patch) | |
tree | 76c80d5dc84d54ad2a3c2fe70a8efb23d87f0d40 /capturedrefrace.go | |
parent | 3fb25b9de7f5673fe2af04606c7b35bb53f1f2bf (diff) | |
download | gocapturedrefrace-4859ae4083e5035cc75527423fe5be69a1201b64.tar.bz2 |
gocapturedrefrace/main: Add version command line argument
I don't need to use the `flags` package here for a single boolean
option. Previously I had tried with `flags` but it conflicted with the
flags defined by `analyzer.Analyzer`.
Diffstat (limited to 'capturedrefrace.go')
-rw-r--r-- | capturedrefrace.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/capturedrefrace.go b/capturedrefrace.go index 21a8b2d..b58ed9d 100644 --- a/capturedrefrace.go +++ b/capturedrefrace.go @@ -29,8 +29,6 @@ import ( "golang.org/x/tools/go/ast/inspector" ) -var version = "0.0.1" - var Analyzer = &analysis.Analyzer{ Name: "capturedrefrace", Doc: "reports captured references in goroutine closures", |