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

Function CodeIsValid

net/runmode/code_processor.go:64–77  ·  view source on GitHub ↗

CodeIsValid checks if a store code is valid. Returns an ErrStoreCodeEmpty or an ErrStoreCodeInvalid if the first letter is not a-zA-Z and followed by a-zA-Z0-9_ or store code length is greater than 32 characters. Error behaviour: NotValid

(c string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected