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

Function ToBool

pointer.go:17–19  ·  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 */ ToBool returns a pointer to the passed bool value.

(b bool)

Source from the content-addressed store, hash-verified

15
16// ToBool returns a pointer to the passed bool value.
17func ToBool(b bool) *bool {
18 return &b
19}
20
21// ToByte returns a pointer to the passed byte value.
22func ToByte(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…