logo-MindMajix
PostGoLangGoLang
S
Satish santu

Posted on 21st June 2024|1361 views

0
votes

Golang Create Array Of Objects

How to create an array of objects in Golang?

1 answers
Answers
P
kavya A

Posted on 21st June 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) }

 

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
Name
Course *
Email *
Phone Number