typednil

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 8 Imported by: 1

README

typednil

pkg.go.dev

typednil finds a comparison between typed nil and untyped nil.

func f() {
	err := e()
	if err != nil { // true
		print(err)
	}
}

func e() error {
	var err *struct{error}
	return err
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "typednil",
	Doc:  doc,
	Run:  new(analyzer).run,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
	},
	FactTypes: []analysis.Fact{new(isNilable)},
}

Analyzer finds a comparison between typed nil and untyped nil

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