more special check for ipv4 needed anymore

This commit is contained in:
Miek Gieben 2010-08-05 00:02:44 +02:00
parent 769307b9ce
commit abc2b880a1
1 changed files with 0 additions and 3 deletions

View File

@ -412,9 +412,6 @@ func printStructValue(val *reflect.StructValue) string {
fval := val.Field(i)
if fv, ok := fval.(*reflect.StructValue); ok {
s += printStructValue(fv)
} else if fv, ok := fval.(*reflect.UintValue); ok && f.Tag == "ipv4" { // TODO ipv4 can go here
i := fv.Get()
s += net.IPv4(byte(i>>24), byte(i>>16), byte(i>>8), byte(i)).String()
} else {
s += fmt.Sprint(fval.Interface())
}