MCPcopy
hub / github.com/yusing/godoxy / Initialize

Method Initialize

internal/jsonstore/jsonstore.go:127–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (obj *ObjectStore[Ptr]) Initialize() {
128 obj.ptr = reflect.New(reflect.TypeFor[Ptr]().Elem()).Interface().(Ptr)
129 obj.ptr.Initialize()
130}
131
132func (obj ObjectStore[Ptr]) MarshalJSON() ([]byte, error) {
133 return strutils.MarshalJSON(obj.ptr)

Callers 1

UnmarshalJSONMethod · 0.95

Calls 2

NewMethod · 0.80
InitializeMethod · 0.65

Tested by

no test coverage detected