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

package loopclosure

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

Package loopclosure defines an Analyzer that checks for references to enclosing loop variables from within nested functions.

Index

Constants

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

Variables

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

Source Files

loopclosure.go

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

Tools for package owners.