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

Method String

common/config/encoder.go:95–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (s storeWithEncoderValues) String() string {
96 data := s.Values.Get()
97
98 switch v := data.(type) {
99 case []interface{}, map[string]interface{}:
100 if m := s.Marshaller; m != nil {
101 data, err := m.Marshal(v)
102 if err != nil {
103 return ""
104 }
105
106 return string(data)
107 }
108 }
109
110 return cast.ToString(data)
111}
112
113func (s storeWithEncoderValues) Set(data any) error {
114 switch v := data.(type) {

Callers

nothing calls this directly

Calls 3

ToStringMethod · 0.80
GetMethod · 0.65
MarshalMethod · 0.65

Tested by

no test coverage detected