Post

GoLangGoLang

S
Satish santu

Posted on 29th March 2024|1342 views

0
votes

Golang Create Array Of Objects

How to create an array of objects in Golang?

Answers
P
kavya A

Posted on 29th March 2024

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) }

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos