github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/godef/a/f.go (about) 1 package a 2 3 import "fmt" 4 5 func TypeStuff() { //@Stuff 6 var x string 7 8 switch y := interface{}(x).(type) { //@mark(switchY, "y"),godef("y", switchY) 9 case int: //@mark(intY, "int") 10 fmt.Printf("%v", y) //@hoverdef("y", intY) 11 case string: //@mark(stringY, "string") 12 fmt.Printf("%v", y) //@hoverdef("y", stringY) 13 } 14 15 }