github.com/v2fly/tools@v0.100.0/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) //@hover("y", intY)
    11  	case string: //@mark(stringY, "string")
    12  		fmt.Printf("%v", y) //@hover("y", stringY)
    13  	}
    14  
    15  }