Skip to content

hiwatee/typednil

 
 

Repository files navigation

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
}

About

Analyzer: typednil finds a comparison between typed nil and untyped nil

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%