This commit is contained in:
zu1k
2020-08-15 20:10:41 +08:00
parent 8ca9893650
commit 30a9cae5aa

View File

@@ -77,6 +77,7 @@ func AssertTypeStringNotNull(i interface{}) (str string, err error) {
if str == "" {
return "", errors.New("string is null")
}
return str, nil
default:
return "", errors.New("type is not string")
}