.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.1.1 / stylecheck / testdata / src / CheckYodaConditions / CheckYodaConditions.go.golden
1 // Package pkg ...
2 package pkg
3
4 func fn(x string, y int) {
5         if x == "" { // want `Yoda`
6         }
7         if y == 0 { // want `Yoda`
8         }
9         if 0 > y {
10         }
11         if "" == "" {
12         }
13
14         if "" == "" || y == 0 { // want `Yoda`
15         }
16 }