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

Function netIPFamily

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

Source from the content-addressed store, hash-verified

403}
404
405func netIPFamily(val ref.Val) ref.Val {
406 ip := val.(IP)
407 if ip.Addr.Is4() {
408 return types.Int(4)
409 }
410 return types.Int(6)
411}
412
413func netIPIsCanonical(val ref.Val) ref.Val {
414 s := val.(types.String)

Callers

nothing calls this directly

Calls 1

IntTypeAlias · 0.92

Tested by

no test coverage detected