Skip to content

Go linter to analyze function result parameters: require named / unnamed function result parameters

License

Notifications You must be signed in to change notification settings

leonklingele/funcresult

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

funcresult — a Go linter to analyze function result parameters

Installation

go get -u github.com/leonklingele/funcresult/...
funcresult -help

Run analyzer

funcresult -require-unnamed ./...

# Example output:
GOPATH/src/github.com/leonklingele/funcresult/pkg/analyzer/analyzer.go:18:13: should use unnamed result parameter

Available flags

  -require-named
    	require the use of named function result parameters only
  -require-unnamed
    	require the use of unnamed function result parameters only

About

Go linter to analyze function result parameters: require named / unnamed function result parameters

Resources

License

Stars

Watchers

Forks

Packages

No packages published