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

Method Split

config/path.go:698–731  ·  view source on GitHub ↗

Split splits the route into its three parts and appends it to the slice `ret`. Does not run Validate() Example: routes := cfgpath.MakeRoute("aa/bb/cc") rs, err := routes.Split() rs[0].String() == "aa" rs[1].String() == "bb" rs[2].String() == "cc" Error behaviour: NotValid

(ret ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestPathSplitFunction · 0.95
FindGroupMethod · 0.95
FindFieldMethod · 0.95
UpdateFieldMethod · 0.95
AppendFieldsMethod · 0.95
applyCommentsMethod · 0.45
WithProtobufFunction · 0.45
findUsedPackagesFunction · 0.45
NewGeneratorFunction · 0.45
FromStringMethod · 0.45
ScanMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestPathSplitFunction · 0.76
FromStringMethod · 0.36
ExamplePathFunction · 0.36
BenchmarkPath_SplitFunction · 0.36