All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
strings.Replace
bytes.Replace
n == 0
With n == 0, zero instances will be replaced. To replace all instances, use a negative number, or use strings.ReplaceAll/ bytes.ReplaceAll.
strings.ReplaceAll
bytes.ReplaceAll