MCPcopy Create free account
hub / github.com/AlekSi/pointer / GetTime

Function GetTime

value.go:184–189  ·  view source on GitHub ↗

GetTime returns the value of the time pointer passed in or zero time.Time if the pointer is nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

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

Callers 1

TestTimeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTimeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…