Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
112
func
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
Marshal
Function · 0.85
Unmarshal
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected