golang fmt float64 code example
Example 1: golang parse float64
f, err := strconv.ParseFloat("3.1415", 64)
Example 2: time now golang int64
now := time.Now() // current local time
sec := now.Unix() // number of seconds since January 1, 1970 UTC
nsec := now.UnixNano() // number of nanoseconds since January 1, 1970 UTC
fmt.Println(now) // time.Time
fmt.Println(sec) // int64
fmt.Println(nsec) // int64