Hello, gophers.

My task: I have Go AST tree of next code:

https://play.golang.org/p/bKz3LGZyNtn
```
type s struct {
    i int32
    c byte
}

func main() {
    var a []s = []s{s{1, 'a'}, s{2, 'b'}}
    fmt.Println(a)
}
```

How to modify AST tree for better look struct initialization

https://play.golang.org/p/MH_hg_JoHN-
```
type s struct {
    i int32
    c byte
}

func main() {
    var a []s = []s{
        s{1, 'a'},
        s{2, 'b'},
    }
    fmt.Println(a)
}
```

I will use that for project https://github.com/Konstantin8105/c4go

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to