(val ref.Val)
| 493 | } |
| 494 | |
| 495 | func netIsIP(val ref.Val) ref.Val { |
| 496 | s := val.(types.String) |
| 497 | _, err := parseIPAddr(string(s)) |
| 498 | return types.Bool(err == nil) |
| 499 | } |
| 500 | |
| 501 | func netCIDRIsMask(val ref.Val) ref.Val { |
| 502 | cidr := val.(CIDR) |
nothing calls this directly
no test coverage detected