GetString returns the value of the string pointer passed in or empty string if the pointer is nil.
(s *string)
| 118 | |
| 119 | // GetString returns the value of the string pointer passed in or empty string if the pointer is nil. |
| 120 | func GetString(s *string) string { |
| 121 | if s == nil { |
| 122 | return "" |
| 123 | } |
| 124 | return *s |
| 125 | } |
| 126 | |
| 127 | // GetUint returns the value of the uint pointer passed in or 0 if the pointer is nil. |
| 128 | func GetUint(u *uint) uint { |
no outgoing calls
searching dependent graphs…