github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/types/types.go (about)

     1  package types
     2  
     3  type CoolAlias = int //@item(CoolAlias, "CoolAlias", "int", "type")
     4  
     5  type X struct { //@item(X_struct, "X", "struct{...}", "struct")
     6  	x int
     7  }
     8  
     9  type Y struct { //@item(Y_struct, "Y", "struct{...}", "struct")
    10  	y int
    11  }
    12  
    13  type Bob interface { //@item(Bob_interface, "Bob", "interface{...}", "interface")
    14  	Bobby()
    15  }
    16  
    17  func (*X) Bobby() {}
    18  func (*Y) Bobby() {}