PutFloat allows adding a float attribute to the current map of attributes
(key string, value float64)
| 346 | // PutFloat allows adding a float attribute to the |
| 347 | // current map of attributes |
| 348 | func (attributes Attributes) PutFloat(key string, value float64) Attributes { |
| 349 | rawJSON, _ := json.Marshal(value) |
| 350 | attributes[key] = apiext.JSON{ |
| 351 | Raw: rawJSON, |
| 352 | } |
| 353 | return attributes |
| 354 | } |
| 355 | |
| 356 | // FromFloatMap allows adding into the current map of attributes all |
| 357 | // the attributes contained in the given map of floats |
no outgoing calls
no test coverage detected