What is Go's syntax to add item to a slice or an array?
package main
import "fmt"
type Car struct{
Code string
Brand string
Type string
Price int
Supply int
}
var Stock []Car
func init() {
Stock = []Car{
Car{
Code:"TOY13EMTAV",
Brand:"Toyota Avanza",
Type:"1.3 E M/T",
Price:191100000,
Supply:2,
},
Car{
Code:"TOY15GMTAV",
Brand:"Toyota Avanza",
Type:"1.5 G M/T",
Price:221250000,
Supply:3,
},
Car{
Code:"TOY15GCVTYAR",
Brand:"Toyota Yaris",
Type:"G CVT",
Price:257650000,
Supply:5,
},
}
}