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

Function IsMAC

util/validation/validator.go:850–853  ·  view source on GitHub ↗

IsMAC check if a string is valid MAC address. Possible MAC formats: 01:23:45:67:89:ab 01:23:45:67:89:ab:cd:ef 01-23-45-67-89-ab 01-23-45-67-89-ab-cd-ef 0123.4567.89ab 0123.4567.89ab.cdef

(str string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestIsMACFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsMACFunction · 0.68