github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/fillstruct/fill_struct.go (about) 1 package fillstruct 2 3 type StructA struct { 4 unexportedIntField int 5 ExportedIntField int 6 MapA map[int]string 7 Array []int 8 StructB 9 } 10 11 type StructA2 struct { 12 B *StructB 13 } 14 15 type StructA3 struct { 16 B StructB 17 } 18 19 func fill() { 20 a := StructA{} //@suggestedfix("}", "refactor.rewrite") 21 b := StructA2{} //@suggestedfix("}", "refactor.rewrite") 22 c := StructA3{} //@suggestedfix("}", "refactor.rewrite") 23 if true { 24 _ = StructA3{} //@suggestedfix("}", "refactor.rewrite") 25 } 26 }