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

Package fillreturns

v0.0.0-...-90696cc
Latest Go to latest

The latest major version is .

Published: Aug 6, 2020 | 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

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