Skip to content
Snippets Groups Projects
Commit e7527865 authored by Cornel Rautenbach's avatar Cornel Rautenbach
Browse files

P to string method

parent 1e527616
Branches
Tags v1.1.7
No related merge requests found
...@@ -160,3 +160,11 @@ func ValidateStringAsInt64(stringValue string) error { ...@@ -160,3 +160,11 @@ func ValidateStringAsInt64(stringValue string) error {
_, err := StringToInt64(stringValue) _, err := StringToInt64(stringValue)
return err return err
} }
func PtoString(stringPointer *string) string {
if stringPointer == nil {
return ""
}
return *stringPointer
}
\ 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