go/internal/lsp/testdata/godef/a/f.go

16 lines
313 B
Go

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)
}
}