ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value represented by the provided input INet string, or an error.
(s string)
| 398 | // ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value |
| 399 | // represented by the provided input INet string, or an error. |
| 400 | func ParseDIPAddrFromINetString(s string) (*DIPAddr, error) { |
| 401 | var d DIPAddr |
| 402 | err := ipaddr.ParseINet(s, &d.IPAddr) |
| 403 | if err != nil { |
| 404 | return nil, err |
| 405 | } |
| 406 | return &d, nil |
| 407 | } |
| 408 | |
| 409 | // GetBool gets DBool or an error (also treats NULL as false, not an error). |
| 410 | func GetBool(d Datum) (DBool, error) { |
no test coverage detected
searching dependent graphs…