I'm trying to make a conversion from uintptr
to *string
that doesn't seem to be working so far. I get the value as uintptr and need to pass it on as a *string.
The value I'm working represents an address in the file directory
here's what I've tried so far:
if x is uintptr and y is *string
y = string(x)
- cannot use string(x) (value of type string) as type *string in assignment
y = *string(x)
- cannot indirect string(x) (value of type string)
*y = string(x)
- conversion from uintptr to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)