package shadow

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

Package shadow defines an Analyzer that checks for shadowed variables.

Index

Constants

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

Variables

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

Source Files

shadow.go

Directories

PathSynopsis
go/analysis/passes/shadow/cmd
go/analysis/passes/shadow/cmd/shadowThe shadow command runs the shadow analyzer.
Version
v0.1.10
Published
Mar 15, 2022
Platform
js/wasm
Imports
6 packages
Last checked
5 hours ago

Tools for package owners.