docs: fix the graceful shutdown example (#4809)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The example calls errors.Is but never imports errors, so copying it as written fails to build with "undefined: errors". It also passes an unbuffered channel to signal.Notify, which go vet reports as a misuse: signal delivery is non-blocking, so a signal that arrives before the receive is dropped.
authored by Wahid Rizka Fathurrohman · committed by GitHub · parent b1f77cf · Browse files · 1 file+2 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+2 added−1 removed
- other:+2 added−1 removed