MCPcopy
hub / github.com/perkeep/perkeep / SetAttrs

Method SetAttrs

pkg/importer/importer.go:1507–1510  ·  view source on GitHub ↗

SetAttrs sets multiple attributes. The provided keyval should be an even number of alternating key/value pairs to set.

(keyval ...string)

Source from the content-addressed store, hash-verified

1505// SetAttrs sets multiple attributes. The provided keyval should be an
1506// even number of alternating key/value pairs to set.
1507func (o *Object) SetAttrs(keyval ...string) error {
1508 _, err := o.SetAttrs2(keyval...)
1509 return err
1510}
1511
1512// SetAttrs2 sets multiple attributes and returns whether there were
1513// any changes. The provided keyval should be an even number of

Callers 15

newAccountMethod · 0.95
NodeMethod · 0.95
serveImporterPostMethod · 0.80
deleteMethod · 0.80
toggleAutoMethod · 0.80
ServeCallbackMethod · 0.80
ServeCallbackMethod · 0.80
importTransactionMethod · 0.80
RunMethod · 0.80
ServeSetupMethod · 0.80
ServeCallbackMethod · 0.80
TestIntegrationRunFunction · 0.80

Calls 1

SetAttrs2Method · 0.95

Tested by 4

TestIntegrationRunFunction · 0.64
TestIntegrationRunFunction · 0.64
TestIntegrationRunFunction · 0.64
TestIntegrationFunction · 0.64