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