funcresult

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL