MCPcopy Create free account
hub / github.com/devfile/api / FromFloatMap

Method FromFloatMap

pkg/attributes/attributes.go:358–363  ·  view source on GitHub ↗

FromFloatMap allows adding into the current map of attributes all the attributes contained in the given map of floats

(strings map[string]float64)

Source from the content-addressed store, hash-verified

356// FromFloatMap allows adding into the current map of attributes all
357// the attributes contained in the given map of floats
358func (attributes Attributes) FromFloatMap(strings map[string]float64) Attributes {
359 for key, value := range strings {
360 attributes.PutFloat(key, value)
361 }
362 return attributes
363}
364
365// PutInteger allows adding an integer attribute to the
366// current map of attributes

Callers 1

attributes_test.goFile · 0.80

Calls 1

PutFloatMethod · 0.95

Tested by

no test coverage detected