Back to godoc.org
golang.org/x/tools / internal / lsp / analysis / fillreturns

Package fillreturns

v0.0.0 (6f4f008)
Latest Go to latest
Published: 1 day ago | License: BSD-3-Clause | Module: golang.org/x/tools

Overview

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

Constants

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

Variables

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

func FixesError

func FixesError(msg string) bool
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier