inspector

package
v0.0.0-...-8fa81ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithStackChecker

type WithStackChecker struct {
	// contains filtered or unexported fields
}

func New

func New(pass *analysis.Pass, withoutStackError string, withStackError string) *WithStackChecker

func (*WithStackChecker) CheckErrorReturns

func (c *WithStackChecker) CheckErrorReturns(fnNode *ast.FuncDecl)

CheckErrorReturns returns all return statements that return an error.

func (*WithStackChecker) PreorderedFuncDecl

func (c *WithStackChecker) PreorderedFuncDecl(f func(ast.Node))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL