by usrbinbash · 4y ago · 0 comments
The unit that is converted in, is in the first sentence of the two-sentence documentation of time.Duration():
A Duration represents the elapsed time between two instants as an int64 nanosecond count.
https://pkg.go.dev/time@go1.18#Duration