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

Method UnmarshalText

config/path.go:487–511  ·  view source on GitHub ↗

UnmarshalText transforms the text into a route with performed validation checks. Implements encoding.TextUnmarshaler. Error behaviour: NotValid, Empty.

(txt []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestPath_MarshalTextFunction · 0.95
TestPath_EnvNameFunction · 0.95
UnmarshalTextToMethod · 0.45
BenchmarkPath_MarshalFunction · 0.45

Calls 7

ResetMethod · 0.95
stripEnvSuffixByteMethod · 0.95
IsValidMethod · 0.95
RouteTypeAlias · 0.85
IndexMethod · 0.65
NewMethod · 0.65
CountMethod · 0.45

Tested by 3

TestPath_MarshalTextFunction · 0.76
TestPath_EnvNameFunction · 0.76
BenchmarkPath_MarshalFunction · 0.36