Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ netIsCIDR
Function
netIsCIDR
ext/network.go:489–493 ·
view source on GitHub ↗
(val ref.Val)
Source
from the content-addressed store, hash-verified
487
}
488
489
func
netIsCIDR(val ref.Val) ref.Val {
490
s := val.(types.String)
491
_, err := parseCIDR(string(s))
492
return
types.Bool(err == nil)
493
}
494
495
func
netIsIP(val ref.Val) ref.Val {
496
s := val.(types.String)
Callers
nothing calls this directly
Calls
2
Bool
TypeAlias · 0.92
parseCIDR
Function · 0.85
Tested by
no test coverage detected