MCPcopy
hub / github.com/apache/answer / FilterEmptyString

Function FilterEmptyString

pkg/checker/zero_string.go:28–36  ·  view source on GitHub ↗

FilterEmptyString filter empty string from string slice

(strs []string)

Source from the content-addressed store, hash-verified

26
27// FilterEmptyString filter empty string from string slice
28func FilterEmptyString(strs []string) []string {
29 var result []string
30 for _, str := range strs {
31 if IsNotZeroString(str) {
32 result = append(result, str)
33 }
34 }
35 return result
36}

Callers 1

Calls 1

IsNotZeroStringFunction · 0.85

Tested by

no test coverage detected