MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / isPointer

Function isPointer

pkg/encoding/encoding.go:112–119  ·  view source on GitHub ↗
(data interface{})

Source from the content-addressed store, hash-verified

110}
111
112func isPointer(data interface{}) bool {
113 switch reflect.ValueOf(data).Kind() {
114 case reflect.Ptr, reflect.Interface:
115 return true
116 default:
117 return false
118 }
119}

Callers 2

MarshalFunction · 0.85
UnmarshalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected