.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / internal / lsp / testdata / godef / a / f.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/godef/a/f.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/internal/lsp/testdata/godef/a/f.go
new file mode 100644 (file)
index 0000000..2d3eefc
--- /dev/null
@@ -0,0 +1,15 @@
+package a
+
+import "fmt"
+
+func TypeStuff() { //@Stuff
+       var x string
+
+       switch y := interface{}(x).(type) { //@mark(switchY, "y"),godef("y", switchY)
+       case int: //@mark(intY, "int")
+               fmt.Printf("%v", y) //@hover("y", intY)
+       case string: //@mark(stringY, "string")
+               fmt.Printf("%v", y) //@hover("y", stringY)
+       }
+
+}