NewDIPAddr is a helper routine to create a *DIPAddr initialized from its argument.
(d DIPAddr)
| 1573 | // NewDIPAddr is a helper routine to create a *DIPAddr initialized from its |
| 1574 | // argument. |
| 1575 | func NewDIPAddr(d DIPAddr) *DIPAddr { |
| 1576 | return &d |
| 1577 | } |
| 1578 | |
| 1579 | // AsDIPAddr attempts to retrieve a *DIPAddr from an Expr, returning a *DIPAddr and |
| 1580 | // a flag signifying whether the assertion was successful. The function should |