(val ref.Val)
| 384 | } |
| 385 | |
| 386 | func netIPIsCanonical(val ref.Val) ref.Val { |
| 387 | s := val.(types.String) |
| 388 | str := string(s) |
| 389 | addr, err := parseIPAddr(str) |
| 390 | if err != nil { |
| 391 | return types.WrapErr(err) |
| 392 | } |
| 393 | return types.Bool(addr.String() == str) |
| 394 | } |
| 395 | |
| 396 | func netIPIsGlobalUnicast(val ref.Val) ref.Val { |
| 397 | ip := val.(IP) |
nothing calls this directly
no test coverage detected