answer/pkg/checker/zero_string.go

7 lines
150 B
Go

package checker
// IsNotZeroString check s is not empty string and is not "0"
func IsNotZeroString(s string) bool {
return len(s) > 0 && s != "0"
}