Answers for "dinamic vector golang"

Go
0

dinamic vector golang

type mytype struct {
  a, b int
}

func main() {
  a := []mytype{mytype{1, 2}, mytype{3, 4}}
  a = append(a, mytype{5, 6})
}
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language