()
| 93 | } |
| 94 | |
| 95 | func (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 | |
| 113 | func (s storeWithEncoderValues) Set(data any) error { |
| 114 | switch v := data.(type) { |