Skip to content
Snippets Groups Projects
Commit 8df6cd33 authored by Jano Hendriks's avatar Jano Hendriks
Browse files

added IsEmpty function for string utils

parent 59f1ff43
Branches
Tags
No related merge requests found
...@@ -168,3 +168,11 @@ func PtoString(stringPointer *string) string { ...@@ -168,3 +168,11 @@ func PtoString(stringPointer *string) string {
return *stringPointer return *stringPointer
} }
func IsEmpty(sp *string) bool {
if sp == nil {
return true
}
return len(*sp) == 0
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment