The time.Since(t)
helper has the same effect as using time.Now().Sub(t)
.
Multiple, identical build constraints in the same file.
copy()
permits using the same source and destination slice, even with overlapping ranges. This makes it ideal for sliding elements in a slice.
A process cannot intercept all signals. Specifically, on UNIX-like systems, the syscall.SIGKILL
and syscall.SIGSTOP
signals cannot be captured by the process but instead handled directly by the kernel. It is, therefore, pointless to try and handle these signals.
Assigning to the blank identifier is unnecessary.