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

Function netCIDRIP

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

Source from the content-addressed store, hash-verified

373}
374
375func netCIDRIP(val ref.Val) ref.Val {
376 cidr := val.(CIDR)
377 return IP{Addr: cidr.Prefix.Addr()}
378}
379
380func netCIDRMasked(val ref.Val) ref.Val {
381 cidr := val.(CIDR)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected