example...
func MakeTimestamp() int64 {
return time.Now().UTC().UnixNano() / int64(time.Nanosecond)
}
This will create something like 1539222678608597000
I'm storing this data on mongodb and I will eventually use something like:
db.getCollection('xxxxx').find({ "timestamp":{$lte: 1539194688262205259, $gte: 1539176688262205057} },{"venue": 1},{"product":0})