Is it possible to store the timestamp in a variable like a log function when printing out? Because time.Now is giving too much detail. I did try something like:
//dt := time.Now()
//times := dt.String()
x := []string{cokeAmountStr, spriteAmountStr, fantaAmountStr, mirindaAmountStr, mineralWaterAmountStr, priceStr, mReceivedStr, mReturnStr}
transaction = (strings.Join(x, ","))
var data string = log.Println(transaction)
}
But it won't work