github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/implementation/other/other.go (about) 1 package other 2 3 type ImpP struct{} //@mark(OtherImpP, "ImpP") 4 5 func (*ImpP) Laugh() { //@mark(OtherLaughP, "Laugh") 6 } 7 8 type ImpS struct{} //@mark(OtherImpS, "ImpS") 9 10 func (ImpS) Laugh() { //@mark(OtherLaughS, "Laugh") 11 } 12 13 type ImpI interface { //@mark(OtherLaugher, "ImpI") 14 Laugh() //@mark(OtherLaugh, "Laugh") 15 } 16 17 type Foo struct { //@implementations("Foo", Joker) 18 } 19 20 func (Foo) Joke() { //@mark(ImpJoker, "Joke"),implementations("Joke", Joke) 21 } 22 23 type CryType int 24 25 type Cryer interface { //@Cryer 26 Cry(CryType) //@Cry,implementations("Cry", CryImpl) 27 }