PutString allows adding a string attribute to the current map of attributes
(key string, value string)
| 327 | // PutString allows adding a string attribute to the |
| 328 | // current map of attributes |
| 329 | func (attributes Attributes) PutString(key string, value string) Attributes { |
| 330 | rawJSON, _ := json.Marshal(value) |
| 331 | attributes[key] = apiext.JSON{ |
| 332 | Raw: rawJSON, |
| 333 | } |
| 334 | return attributes |
| 335 | } |
| 336 | |
| 337 | // FromStringMap allows adding into the current map of attributes all |
| 338 | // the attributes contained in the given string map |
no outgoing calls