pkg.go.dev/time#Sleep
No where in the go documentation does it say what units the sleep int is. Seconds? Milliseconds? You just have to try.

Follow

@valleyforge yeah, it does. The Sleep documentation says it takes an argument of type Duration, which "represents the elapsed time between two instants as an int64 nanosecond count" according to its own documentation a couple entries after Sleep.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.