package shadow

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

Package shadow defines an Analyzer that checks for shadowed variables.

Index

Package Files

shadow.go

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,
}

Directories

PathSynopsis
go/analysis/passes/shadow/cmd
go/analysis/passes/shadow/cmd/shadowThe shadow command runs the shadow analyzer.
Version
v0.1.12 (latest)
Published
Jul 27, 2022
Platform
linux/amd64
Imports
6 packages (graph)
Last checked
8 hours ago

Tools for package owners.