I want to pass a uintptr to unsafe.Pointer but govet is telling me possible misuse of unsafe.Pointer. I can't figure out how to satisfy govet.
func Example(base uintptr) byte {
x := *(*byte)(unsafe.Add(base, 4))
return x
}
If i pass &base govet does to complain but breaks the functionality because it is passing the address of uintptr.