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

Function IsNotZeroString

pkg/checker/zero_string.go:23–25  ·  view source on GitHub ↗

IsNotZeroString check s is not empty string and is not "0"

(s string)

Source from the content-addressed store, hash-verified

21
22// IsNotZeroString check s is not empty string and is not "0"
23func IsNotZeroString(s string) bool {
24 return len(s) > 0 && s != "0"
25}
26
27// FilterEmptyString filter empty string from string slice
28func FilterEmptyString(strs []string) []string {

Callers 5

InfoMethod · 0.92
FormatQuestionsPageMethod · 0.92
FilterEmptyStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected