MCPcopy
hub / github.com/netdata/netdata / normalizeOptional

Function normalizeOptional

src/go/plugin/framework/chartengine/compiler.go:451–457  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

449}
450
451func normalizeOptional(value string) []string {
452 value = strings.TrimSpace(value)
453 if value == "" {
454 return nil
455 }
456 return []string{value}
457}
458
459func filterEmpty(items []string) []string {
460 out := make([]string, 0, len(items))

Callers 2

CompileFunction · 0.85
compileGroupMethod · 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…