[Vuejs]-How can I make struct in go for object having array of object inside it?

2👍

Based on your database structure, selected_solutions is an object containing string arrays:

type Technology struct {
    ID                primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
    SoftwareType      string             `json:"software_type" bson:"software_type"`
    SelectedSolutions map[string][]string `json:"selected_solutions" bson:"selected_solutions"`
}

Leave a comment