-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CGO: *_Ctype_char does not satisfy *any
#69456
Comments
That is how the language works. The type You can write your function as func ConvPointer[ER, ES any, RESULT *ER, SOURCE *ES](ptr SOURCE) RESULT {
return (RESULT)(unsafe.Pointer(ptr))
} Closing because this is not a bug. |
oh ok, I missed that, thank you!! |
Go version
go version go1.23.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I want to write a function that converts C.char from Package A to C.char from Package B
I wrote function like that
What did you see happen?
when calling this function I get:
What did you expect to see?
any
as the name suggests means anything, so whyC.char
is not anything? Is there a reason for that?The text was updated successfully, but these errors were encountered: