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

package fillreturns

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

Package fillreturns defines an Analyzer that will attempt to automatically fill in a return statement that has missing values with zero value elements.

Index

Package Files

fillreturns.go

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
    Name:             "fillreturns",
    Doc:              Doc,
    Requires:         []*analysis.Analyzer{},
    Run:              run,
    RunDespiteErrors: true,
}

func FixesError Uses

func FixesError(msg string) bool

Package fillreturns imports 11 packages (graph) and is imported by 2 packages. Updated 2020-07-15. Refresh now. Tools for package owners.