Replace manual array indexing (labels[1], labels[2], labels[3]) with
cleaner append syntax using slice notation (labels[1:]...).
This makes the code more maintainable and idiomatic Go.
Before: labelTotal := []string{"total", labels[1], labels[2], labels[3]}
After: labelTotal := append([]string{"total"}, labels[1:]...)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| datadogunifi | ||
| influxunifi | ||
| inputunifi | ||
| lokiunifi | ||
| mysqlunifi | ||
| poller | ||
| promunifi | ||
| unittest | ||
| webserver | ||