Section 5.2.24 Timers and Tickers
Durations Number of nanoseconds between two times instances Go's way to identify time durations Examples: 3*time.Second => time duration of 3 seconds 3*time.Minute => time duration of 3 minutes So what are the relations. The Duration is a special type in go that can describe a time duration based on the number of nanoseconds. Between the start and the end time the type exists in the time package..
Go/Mastering Go
2022. 3. 5. 18:17