SetString replaces the value at keys with val encoded as a JSON string. SYS-REQ-009
(data []byte, val string, keys ...string)
| 266 | // SetString replaces the value at keys with val encoded as a JSON string. |
| 267 | // SYS-REQ-009 |
| 268 | func SetString(data []byte, val string, keys ...string) ([]byte, error) { |
| 269 | return Set(data, Escape(val), keys...) |
| 270 | } |
| 271 | |
| 272 | // unescape unescapes the string contained in 'in' and returns it as a slice. |
| 273 | // If 'in' contains no escaped characters: |