Hi Ignacio, This is excellent, works perfectly. Thank you so much. I will try to do my research but just out of curiosity and make sure I understand the code, what does this line do? I also don't have proper understanding of golang maps sums[dataarray[j][0]] += sumFloat
So 'sum' map is taking the first index in dataarray as key, summing the second index and assigning it as the value to the key. As it is looping through the array, if it sees that the key is the same, it automatically sums it up? Is that accurate? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
