Categorygithub.com/snkrdunk/empty_err_checker
modulepackage
0.0.0-20240905063525-4d85fa42327a
Repository: https://github.com/snkrdunk/empty_err_checker.git
Documentation: pkg.go.dev

# README

empty_err_checker

Test

empty_err_checker is checking whether the return value 'err' is nil.

example

func inValidErrChecker() error {
	var err error
	isValid := isValid()
	if !isValid {
		return err // report this return err as invalid
	}
	return nil
}

Check the test code for detailed detection examples.

Installation

go install github.com/snkrdunk/empty_err_checker/cmd/empty_err_checker@latest

# Packages

No description provided by the author

# Variables

No description provided by the author