.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
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckYodaConditions/CheckYodaConditions.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.1.1/stylecheck/testdata/src/CheckYodaConditions/CheckYodaConditions.go.golden
new file mode 100644 (file)
index 0000000..3ab6734
--- /dev/null
@@ -0,0 +1,16 @@
+// Package pkg ...
+package pkg
+
+func fn(x string, y int) {
+       if x == "" { // want `Yoda`
+       }
+       if y == 0 { // want `Yoda`
+       }
+       if 0 > y {
+       }
+       if "" == "" {
+       }
+
+       if "" == "" || y == 0 { // want `Yoda`
+       }
+}