ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value represented by the provided input INet string, or an error.
(s string)
| 247 | // ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value |
| 248 | // represented by the provided input INet string, or an error. |
| 249 | func ParseDIPAddrFromINetString(s string) (*DIPAddr, error) { |
| 250 | var d DIPAddr |
| 251 | err := ipaddr.ParseINet(s, &d.IPAddr) |
| 252 | if err != nil { |
| 253 | return nil, err |
| 254 | } |
| 255 | return &d, nil |
| 256 | } |
| 257 | |
| 258 | // ResolvedType implements the TypedExpr interface. |
| 259 | func (*DBool) ResolvedType() *types.T { |
no test coverage detected