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

Method Parse

config/path.go:349–382  ·  view source on GitHub ↗

Parse takes a route or a fully qualified path and splits it into its parts with final validation. Input: stores/5/catalog/frontend/list_allow_all or just catalog/frontend/list_allow_all to use default scope. => scope: stores scopeID: 5 route: catalog/frontend/list_allow_all Zero allocati

(routeOrFQPath string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestPath_EnvNameFunction · 0.95
ExampleValueFunction · 0.95
FromEnvVarFunction · 0.95
WithLoadStringsFunction · 0.95

Calls 10

ResetMethod · 0.95
stripEnvSuffixStrMethod · 0.95
IsValidMethod · 0.95
RouteTypeAlias · 0.85
isDigitOnlyFunction · 0.85
IndexMethod · 0.65
NewMethod · 0.65
ValidMethod · 0.65
CountMethod · 0.45
FromStringMethod · 0.45

Tested by 2

TestPath_EnvNameFunction · 0.76
ExampleValueFunction · 0.76