MCPcopy Create free account
hub / github.com/cel-expr/cel-go / netIsIP

Function netIsIP

ext/network.go:442–446  ·  view source on GitHub ↗
(val ref.Val)

Source from the content-addressed store, hash-verified

440}
441
442func netIsIP(val ref.Val) ref.Val {
443 s := val.(types.String)
444 _, err := parseIPAddr(string(s))
445 return types.Bool(err == nil)
446}
447
448func netCIDRIsMask(val ref.Val) ref.Val {
449 cidr := val.(CIDR)

Callers

nothing calls this directly

Calls 2

BoolTypeAlias · 0.92
parseIPAddrFunction · 0.85

Tested by

no test coverage detected