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

Function IsHost

util/validation/validator.go:856–858  ·  view source on GitHub ↗

IsHost checks if the string is a valid IP (both v4 and v6) or a valid DNS name

(str string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestIsHostFunction · 0.85

Calls 2

IsIPFunction · 0.85
IsDNSNameFunction · 0.85

Tested by 1

TestIsHostFunction · 0.68