zerolit

package module
v0.0.0-...-bfc7e47 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 7 Imported by: 0

README

zerolit

pkg.go.dev

zerolit finds return zero values but they are not literal.

Install

You can get zerolit by go install command (Go 1.16 and higher).

$ go install github.com/gostaticanalysis/zerolit@latest

How to use

zerolit run with go vet as below when Go is 1.12 and higher.

$ go vet -vettool=$(which zerolit) ./...

Analyze with golang.org/x/tools/go/analysis

You can get analyzers of zerolit from zerolit.Analyzers. And you can use them with unitchecker.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "zerolit",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer finds return zero values but they are not literal.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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