(v interface{})
| 182 | } |
| 183 | |
| 184 | func (store Store) encodeValue(v interface{}) ([]byte, error) { |
| 185 | switch v := v.(type) { |
| 186 | case sops.TreeBranches: |
| 187 | return store.encodeTree(v) |
| 188 | default: |
| 189 | return json.Marshal(v) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | // EmitValue returns a single value encoded in a generic interface{} as bytes |
| 194 | func (store *Store) EmitValue(v interface{}) ([]byte, error) { |
no test coverage detected