MCPcopy
hub / github.com/safing/portmaster / StructAccessor

Struct StructAccessor

base/database/accessor/accessor-struct.go:10–12  ·  view source on GitHub ↗

StructAccessor is a json string with get functions.

Source from the content-addressed store, hash-verified

8
9// StructAccessor is a json string with get functions.
10type StructAccessor struct {
11 object reflect.Value
12}
13
14// NewStructAccessor adds the Accessor interface to a JSON string.
15func NewStructAccessor(object interface{}) *StructAccessor {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected