MCPcopy 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
400func netCIDRToString(val ref.Val) ref.Val {
401 cidr := val.(CIDR)
402 return types.String(cidr.Prefix.String())
403}
404
405func netIPFamily(val ref.Val) ref.Val {
406 ip := val.(IP)

Callers

nothing calls this directly

Calls 2

StringTypeAlias · 0.92
StringMethod · 0.65

Tested by

no test coverage detected