GetTime returns the value of the time pointer passed in or zero time.Time if the pointer is nil.
(t *time.Time)
| 182 | |
| 183 | // GetTime returns the value of the time pointer passed in or zero time.Time if the pointer is nil. |
| 184 | func GetTime(t *time.Time) time.Time { |
| 185 | if t == nil { |
| 186 | return time.Time{} |
| 187 | } |
| 188 | return *t |
| 189 | } |