SetString replaces the value at keys with val encoded as a JSON string. SYS-REQ-009
(data []byte, val string, keys ...string)
| 240 | // SetString replaces the value at keys with val encoded as a JSON string. |
| 241 | // SYS-REQ-009 |
| 242 | func SetString(data []byte, val string, keys ...string) ([]byte, error) { |
| 243 | return Set(data, Escape(val), keys...) |
| 244 | } |
| 245 | |
| 246 | // unescape unescapes the string contained in 'in' and returns it as a slice. |
| 247 | // If 'in' contains no escaped characters: |