Closed oathupdate closed 4 years ago
This is an unfortunate limitation, but it is very difficult to fix, and it is documented. From https://golang.org/cmd/cgo, q.v.:
Calling C function pointers is currently not supported, however you can declare Go variables which hold C function pointers and pass them back and forth between Go and C. C code may call function pointers received from Go.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
build success
What did you see instead?
./plus.go:24:25: cannot call non-function ctx.plus (type *[0]byte)