By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
time.Sleep
select
Instead of using a single case in a select statement that receives results from time.After is preferable to simply use time.Sleep.
time.After
select { case <-time.After(0): }
time.Sleep(0)