toolsgolang.org/x/tools/go/analysis/passes/reflectvaluecompare Index | Files

package reflectvaluecompare

import "golang.org/x/tools/go/analysis/passes/reflectvaluecompare"

Package reflectvaluecompare defines an Analyzer that checks for accidentally using == or reflect.DeepEqual to compare reflect.Value values. See issues 43993 and 18871.

Index

Constants

const Doc = "" /* 545 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "reflectvaluecompare",
	Doc:      Doc,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Source Files

reflectvaluecompare.go

Version
v0.3.0
Published
Nov 9, 2022
Platform
js/wasm
Imports
7 packages
Last checked
5 hours ago

Tools for package owners.