Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / stylecheck / testdata / src / CheckErrorVarNames / CheckErrorVarNames.go
1 // Package pkg ...
2 package pkg
3
4 import (
5         "errors"
6         "fmt"
7 )
8
9 var (
10         foo                   = errors.New("") // want `error var foo should have name of the form errFoo`
11         errBar                = errors.New("")
12         qux, fisk, errAnother = errors.New(""), errors.New(""), errors.New("") // want `error var qux should have name of the form errFoo` `error var fisk should have name of the form errFoo`
13         abc                   = fmt.Errorf("")                                 // want `error var abc should have name of the form errFoo`
14
15         errAbc = fmt.Errorf("")
16 )
17
18 var wrong = errors.New("") // want `error var wrong should have name of the form errFoo`
19
20 var result = fn()
21
22 func fn() error { return nil }