github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/lsp/testdata/stub/stub_embedded.go.golden (about) 1 -- suggestedfix_stub_embedded_8_27 -- 2 package stub 3 4 import ( 5 "io" 6 "sort" 7 ) 8 9 var _ embeddedInterface = (*embeddedConcrete)(nil) //@suggestedfix("(", "refactor.rewrite") 10 11 type embeddedConcrete struct{} 12 13 // Len implements embeddedInterface 14 func (*embeddedConcrete) Len() int { 15 panic("unimplemented") 16 } 17 18 // Less implements embeddedInterface 19 func (*embeddedConcrete) Less(i int, j int) bool { 20 panic("unimplemented") 21 } 22 23 // Swap implements embeddedInterface 24 func (*embeddedConcrete) Swap(i int, j int) { 25 panic("unimplemented") 26 } 27 28 // Read implements embeddedInterface 29 func (*embeddedConcrete) Read(p []byte) (n int, err error) { 30 panic("unimplemented") 31 } 32 33 type embeddedInterface interface { 34 sort.Interface 35 io.Reader 36 } 37