Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leonklingele/funcresult

Go linter to analyze function result parameters: require named / unnamed function result parameters
https://github.com/leonklingele/funcresult

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# funcresult — a Go linter to analyze function result parameters

## Installation

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

## Run analyzer

```sh
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
```