Posted on 16th September 2024|1361 views
How to create an array of objects in Golang?
Posted on 16th September 2024| views
Look at this example:
package main
import "fmt"
func main() {
elements := make(map[string]interface{})
elements["name"] = "akshith"
elements["date"] = "2016-08-03"
elements["qty"] = 4
fmt.Println(elements) }