最佳答案
How can I get Unix time in Go in milliseconds?
I have the following function:
func makeTimestamp() int64 {
return time.Now().UnixNano() % 1e6 / 1e3
}
I need less precision and only want milliseconds.