notparam

package module
v0.0.0-...-d48995c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 5 Imported by: 0

README

notparam

pkg.go.dev

notparam restricts not to use type parameters in declaration of functions and types.

Type parameter has not been released yet. You can try it with gotip.

Install

You can get notparam by go install command (Go 1.18 and higher).

$ go install github.com/gostaticanalysis/notparam/cmd/notparam@latest

How to use

notparam run with go vet as below when Go is 1.18 and higher.

$ go vet -vettool=$(which notparam) ./...

Analyze with golang.org/x/tools/go/analysis

You can use notparam.Analyzer with unitchecker.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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