MCPcopy Index your code
hub / github.com/AlekSi/pointer / GetInt64

Function GetInt64

value.go:104–109  ·  view source on GitHub ↗

GetInt64 returns the value of the int64 pointer passed in or 0 if the pointer is nil.

(i *int64)

Source from the content-addressed store, hash-verified

102
103// GetInt64 returns the value of the int64 pointer passed in or 0 if the pointer is nil.
104func GetInt64(i *int64) int64 {
105 if i == nil {
106 return 0
107 }
108 return *i
109}
110
111// GetRune returns the value of the rune pointer passed in or 0 if the pointer is nil.
112func GetRune(r *rune) rune {

Callers 1

TestInt64Function · 0.85

Calls

no outgoing calls

Tested by 1

TestInt64Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…