Skip to content
Snippets Groups Projects
Commit 937b0fac authored by Jan Semmelink's avatar Jan Semmelink
Browse files

Merge branch 'main' of gitlab.com:uafrica/go-utils

parents 4e9dde42 8df6cd33
No related branches found
No related tags found
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