blob: 2d3eefcfbc1624200ca5afdb56564ec7efb076a4 [file] [log] [blame]
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)
}
}