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: about 1 month 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-06-06T21:30:27.000Z (about 1 month ago)
- Last Synced: 2025-06-06T22:28:40.270Z (about 1 month ago)
- Language: Go
- Size: 252 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
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 install github.com/leonklingele/funcresult@latest
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
```