checkers

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallContext

type CallContext struct {
	Expr      *ast.CallExpr
	Func      *types.Func
	Signature *types.Signature
}

type Checker

type Checker interface {
	CheckAndReport(pass *analysis.Pass, call CallContext, cfg Config)
}

type Config

type Config struct {
	RequireStringKey bool
}

type General

type General struct{}

func (General) CheckAndReport

func (g General) CheckAndReport(pass *analysis.Pass, call CallContext, cfg Config)

type Zap

type Zap struct {
	General
}

func (Zap) CheckAndReport

func (z Zap) CheckAndReport(pass *analysis.Pass, call CallContext, cfg Config)

Jump to

Keyboard shortcuts

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