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

Method FromStringMap

pkg/attributes/attributes.go:339–344  ·  view source on GitHub ↗

FromStringMap allows adding into the current map of attributes all the attributes contained in the given string map

(strings map[string]string)

Source from the content-addressed store, hash-verified

337// FromStringMap allows adding into the current map of attributes all
338// the attributes contained in the given string map
339func (attributes Attributes) FromStringMap(strings map[string]string) Attributes {
340 for key, value := range strings {
341 attributes.PutString(key, value)
342 }
343 return attributes
344}
345
346// PutFloat allows adding a float attribute to the
347// current map of attributes

Callers 2

attributes_test.goFile · 0.80

Calls 1

PutStringMethod · 0.95

Tested by

no test coverage detected