Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ netCIDRToString
Function
netCIDRToString
ext/network.go:400–403 ·
view source on GitHub ↗
(val ref.Val)
Source
from the content-addressed store, hash-verified
398
}
399
400
func
netCIDRToString(val ref.Val) ref.Val {
401
cidr := val.(CIDR)
402
return
types.String(cidr.Prefix.String())
403
}
404
405
func
netIPFamily(val ref.Val) ref.Val {
406
ip := val.(IP)
Callers
nothing calls this directly
Calls
2
String
TypeAlias · 0.92
String
Method · 0.65
Tested by
no test coverage detected