github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/fillstruct/a2.go (about) 1 package fillstruct 2 3 type typedStruct struct { 4 m map[string]int 5 s []int 6 c chan int 7 c1 <-chan int 8 a [2]string 9 } 10 11 var _ = typedStruct{} //@suggestedfix("}", "refactor.rewrite") 12 13 type funStruct struct { 14 fn func(i int) int 15 } 16 17 var _ = funStruct{} //@suggestedfix("}", "refactor.rewrite") 18 19 type funStructCompex struct { 20 fn func(i int, s string) (string, int) 21 } 22 23 var _ = funStructCompex{} //@suggestedfix("}", "refactor.rewrite") 24 25 type funStructEmpty struct { 26 fn func() 27 } 28 29 var _ = funStructEmpty{} //@suggestedfix("}", "refactor.rewrite")