MCPcopy Index your code
hub / github.com/go-python/gopy / NonPtrValue

Function NonPtrValue

gopyh/handle.go:54–59  ·  view source on GitHub ↗

NonPtrValue returns the non-pointer underlying value

(v reflect.Value)

Source from the content-addressed store, hash-verified

52
53// NonPtrValue returns the non-pointer underlying value
54func NonPtrValue(v reflect.Value) reflect.Value {
55 for v.Kind() == reflect.Ptr {
56 v = v.Elem()
57 }
58 return v
59}
60
61// PtrValue returns the pointer version (Addr()) of the underlying value if
62// the value is not already a Ptr

Callers 1

EmbedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected