panic(fmt.Errorf("unsupported pointer to type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice",e.Kind()))
}
casereflect.Slice,reflect.Array:
ifv.Len()!=0{
addr=unsafe.Pointer(v.Index(0).UnsafeAddr())
}
casereflect.Uintptr:
addr=unsafe.Pointer(d.(uintptr))
default:
panic(fmt.Errorf("unsupported type %s; must be a slice or pointer to a singular scalar value or the first element of an array or slice",v.Type()))