PutString allows adding a string attribute to the current map of attributes
(key string, value string)
| 318 | // PutString allows adding a string attribute to the |
| 319 | // current map of attributes |
| 320 | func (attributes Attributes) PutString(key string, value string) Attributes { |
| 321 | rawJSON, _ := json.Marshal(value) |
| 322 | attributes[key] = apiext.JSON{ |
| 323 | Raw: rawJSON, |
| 324 | } |
| 325 | return attributes |
| 326 | } |
| 327 | |
| 328 | // FromStringMap allows adding into the current map of attributes all |
| 329 | // the attributes contained in the given string map |
no outgoing calls