2
0

Add inet[] and cidr[] support

This commit is contained in:
Jack Christensen and Jake Worth
2015-09-29 13:23:26 -05:00
parent 36fb7a3aec
commit c726a51450
4 changed files with 139 additions and 1 deletions
+2
View File
@@ -295,6 +295,8 @@ func (rows *Rows) Scan(dest ...interface{}) (err error) {
}
case *net.IPNet:
*v = decodeInet(vr)
case *[]net.IPNet:
*v = decodeInetArray(vr)
default:
// if d is a pointer to pointer, strip the pointer and try again
if v := reflect.ValueOf(d); v.Kind() == reflect.Ptr {