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

Function GetBool

value.go:16–21  ·  view source on GitHub ↗

* Order as in spec: bool byte complex64 complex128 error float32 float64 int int8 int16 int32 int64 rune string uint uint8 uint16 uint32 uint64 uintptr time.Duration time.Time */ GetBool returns the value of the bool pointer passed in or false if the pointer is nil.

(b *bool)

Source from the content-addressed store, hash-verified

14
15// GetBool returns the value of the bool pointer passed in or false if the pointer is nil.
16func GetBool(b *bool) bool {
17 if b == nil {
18 return false
19 }
20 return *b
21}
22
23// GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil.
24func GetByte(b *byte) byte {

Callers 1

TestBoolFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBoolFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…