Parsing CSV file with JSON data in Golang
I've a CSV File having data in below format. Date,RestaurantId,ItemRatings 2023-10-08,232,[{"item_id":8215117,"item_name":"The Farmers Breakfast","current_day_count":0,"current_day_sum":0,"mtd_count":1,"mtd_sum":5,"wtd_count":0,"wtd_sum":0},{"item_id":8215132,"item_name":"The Great White","current_day_count":0,"current_day_sum":0,"mtd_count":1,"mtd_sum":5,"wtd_count":0,"wtd_sum":0}] I want to parse the CSV file to store the data in a struct type ItemRatings struct { RestaurantId int `json:“item_id”` Date string `json:"date"` ItemData…