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

Function netIsIP

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

Source from the content-addressed store, hash-verified

467}
468
469func netIsIP(val ref.Val) ref.Val {
470 s := val.(types.String)
471 _, err := parseIPAddr(string(s))
472 return types.Bool(err == nil)
473}
474
475func netCIDRIsMask(val ref.Val) ref.Val {
476 cidr := val.(CIDR)

Callers

nothing calls this directly

Calls 2

BoolTypeAlias · 0.92
parseIPAddrFunction · 0.85

Tested by

no test coverage detected