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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.