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.
You can get notparam by go install command (Go 1.18 and higher).
$ go install github.com/gostaticanalysis/notparam/cmd/notparam@latestnotparam run with go vet as below when Go is 1.18 and higher.
$ go vet -vettool=$(which notparam) ./...You can use notparam.Analyzer with unitchecker.