Skip to content

Commit 6399d21

Browse files
adonovangopherbot
authored andcommitted
go/analysis/passes/reflectvaluecompare/cmd/reflectvaluecompare: add main.go
This makes it easier to play with. Updates golang/go#71732 Change-Id: If5ec810c051b0c12ec30891c9a431cc5ca06dcd9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/649615 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 7fed2a4 commit 6399d21

File tree

1 file changed

+18
-0
lines changed
  • go/analysis/passes/reflectvaluecompare/cmd/reflectvaluecompare

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2025 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// The reflectvaluecompare command applies the reflectvaluecompare
6+
// checker to the specified packages of Go source code.
7+
//
8+
// Run with:
9+
//
10+
// $ go run ./go/analysis/passes/reflectvaluecompare/cmd/reflectvaluecompare -- packages...
11+
package main
12+
13+
import (
14+
"golang.org/x/tools/go/analysis/passes/reflectvaluecompare"
15+
"golang.org/x/tools/go/analysis/singlechecker"
16+
)
17+
18+
func main() { singlechecker.Main(reflectvaluecompare.Analyzer) }

0 commit comments

Comments
 (0)