MCPcopy Create free account
hub / github.com/corestoreio/pkg / UpdateField

Method UpdateField

config/elements.go:252–276  ·  view source on GitHub ↗

UpdateField searches for a field using all three path segments and updates the found field with the new field data. Returns the field position within the GroupSlice or a negative index in case a route part can't be found.

(r string, nf *Field)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestSectionUpdateFieldFunction · 0.80

Calls 5

SplitMethod · 0.95
FindMethod · 0.95
RouteTypeAlias · 0.85
FindMethod · 0.45
UpdateMethod · 0.45

Tested by 1

TestSectionUpdateFieldFunction · 0.64