tools: golang.org/x/tools/internal/lsp/analysis/nonewvars Index | Files

package nonewvars

import "golang.org/x/tools/internal/lsp/analysis/nonewvars"

Package nonewvars defines an Analyzer that applies suggested fixes to errors of the type "no new variables on left side of :=".

Index

Package Files

nonewvars.go

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
    Name:             string(analysisinternal.NoNewVars),
    Doc:              Doc,
    Requires:         []*analysis.Analyzer{inspect.Analyzer},
    Run:              run,
    RunDespiteErrors: true,
}

func FixesError Uses

func FixesError(msg string) bool

Package nonewvars imports 8 packages (graph) and is imported by 2 packages. Updated 2020-08-05. Refresh now. Tools for package owners.