nilerr nilerr finds codes which are returning nil and checking either error is not nil. func f() error { err := do() if err != nil { return nil // miss } }