Skip to content

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

License

Notifications You must be signed in to change notification settings

gostaticanalysis/notparam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages