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

Method String

common/registry/config/encoder.go:113–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113func (s storeWithEncoderValues) String() string {
114 data := s.Values.Get()
115
116 switch v := data.(type) {
117 case []interface{}, map[string]interface{}:
118 if m := s.Marshaller; m != nil {
119 data, err := m.Marshal(v)
120 if err != nil {
121 return ""
122 }
123
124 return string(data)
125 }
126 }
127
128 return cast.ToString(data)
129}
130
131func (s storeWithEncoderValues) Set(data any) error {
132 var a any

Callers

nothing calls this directly

Calls 3

ToStringMethod · 0.80
GetMethod · 0.65
MarshalMethod · 0.65

Tested by

no test coverage detected