findnil

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

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 14 Imported by: 0

README

findnil

pkg.go.dev

findnil finds nil references.

How to use

$ go install github.com/gostaticanalysis/findnil/cmd/findnil@latest
$ findnil ./...

Author

VANISH STANDARD CO.,LTD.

Documentation

Index

Constants

View Source
const (
	ExitSuccess = 0
	ExitError   = 1
)

Variables

This section is empty.

Functions

func Main

func Main(args ...string) int

Types

type Cmd

type Cmd struct {
	Dir    string
	Stdout io.Writer
	Stderr io.Writer
}

func (*Cmd) Run

func (cmd *Cmd) Run(args ...string) int

type Program

type Program struct {
	Nilless   *nilless.Result
	SSA       *ssa.Program
	Packages  []*ssa.Package
	Mains     []*ssa.Package
	SrcFuncs  map[*ssa.Package][]*ssa.Function
	Fset      *token.FileSet
	TypesInfo map[*ssa.Package]*types.Info
	Files     map[*ssa.Package][]*ast.File
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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