MCPcopy Create free account
hub / github.com/segmentio/encoding / dereference

Function dereference

thrift/encode.go:248–256  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

246}
247
248func dereference(v reflect.Value) reflect.Value {
249 for v.Kind() == reflect.Ptr {
250 if v.IsNil() {
251 return v
252 }
253 v = v.Elem()
254 }
255 return v
256}
257
258func isTrue(v reflect.Value) bool {
259 v = dereference(v)

Callers 1

isTrueFunction · 0.85

Calls 2

KindMethod · 0.65
ElemMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…