Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leonklingele/funcresult
- Owner: leonklingele
- License: agpl-3.0
- Created: 2022-01-27T16:49:30.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T10:10:49.000Z (over 1 year ago)
- Last Synced: 2024-10-06T17:41:29.643Z (about 1 month ago)
- Language: Go
- Size: 247 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```