MCPcopy Index your code
hub / github.com/netdata/netdata / filterEmpty

Function filterEmpty

src/go/plugin/framework/chartengine/compiler.go:459–469  ·  view source on GitHub ↗
(items []string)

Source from the content-addressed store, hash-verified

457}
458
459func filterEmpty(items []string) []string {
460 out := make([]string, 0, len(items))
461 for _, item := range items {
462 item = strings.TrimSpace(item)
463 if item == "" {
464 continue
465 }
466 out = append(out, item)
467 }
468 return out
469}
470
471func cloneStringSet(in map[string]struct{}) map[string]struct{} {
472 out := make(map[string]struct{}, len(in))

Callers 1

compileChartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…