ctxfunc

package
v0.0.0-...-65fd79d Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ctxfunc implements an analyzer that checks if a context argument is always the first parameter to a function, and that it is named 'ctx'.

Index

Constants

View Source
const Doc = "check if there is any context parameter in the code, that is not the first argument to a function or that's not named 'ctx'"

Doc is the documentation string that is shown on the command line if help is requested.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "ctxfunc",
	Doc:  Doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer implements the analyzer that checks all context arguments.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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