MCPcopy Create free account
hub / github.com/pydio/cells / Set

Method Set

common/config/encoder.go:113–125  ·  view source on GitHub ↗
(data any)

Source from the content-addressed store, hash-verified

111}
112
113func (s storeWithEncoderValues) Set(data any) error {
114 switch v := data.(type) {
115 case []byte:
116 var a any
117 if err := s.Unmarshaler.Unmarshal(v, &a); err != nil {
118 return err
119 }
120
121 return s.Values.Set(a)
122 }
123
124 return s.Values.Set(data)
125}

Callers

nothing calls this directly

Calls 2

UnmarshalMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected