Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / internal / lsp / testdata / fillstruct / fill_struct.go
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 }