ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value represented by the provided input INet string, or an error.
(s string)
| 349 | // ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value |
| 350 | // represented by the provided input INet string, or an error. |
| 351 | func ParseDIPAddrFromINetString(s string) (*DIPAddr, error) { |
| 352 | var d DIPAddr |
| 353 | err := ipaddr.ParseINet(s, &d.IPAddr) |
| 354 | if err != nil { |
| 355 | return nil, err |
| 356 | } |
| 357 | return &d, nil |
| 358 | } |
| 359 | |
| 360 | // GetBool gets DBool or an error (also treats NULL as false, not an error). |
| 361 | func GetBool(d Datum) (DBool, error) { |
no test coverage detected
searching dependent graphs…