How do I declare an array of struct literal?
Go:
type Ping struct {
Content []aContent
}
type aContent struct {
Type string
Id string
Created_at int64
}
func main() {
f := Ping{Content: []aContent{Type: "Hello", Id: "asdf"}}
fmt.Println(f)
}
The code can be found here: http://play.golang.org/p/-SyRw6dDUm