go time to int64 code example
Example: go packae unix time
package main
import (
"fmt"
"time"
)
func unixtime() {
fmt.Println(time.Now().Unix())
}
package main
import (
"fmt"
"time"
)
func unixtime() {
fmt.Println(time.Now().Unix())
}