You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you. I looked at the two links and looks like they are closed.
Could you please tell me what are the plans?
I have a real case - where to explain it with more details?
As of now, it's very difficult to achieve this without a major change as outlined in #38248. I think once wasi support arrives, this will be available.
You are welcome to comment on those issues if you have any suggestions.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
package main
import "C"
//export Sum
func Sum(a, b int) int {
return a + b
}
func main() {
// We need the main function to make possible
// CGO compiler to compile the package as C shared library
}
What did you expect to see?
I want to expose the Sum function which accepts arguments in order to use it
in a non browser environment.
Currently there is no way to do that mucous only main() is exposed.
What did you see instead?
The text was updated successfully, but these errors were encountered: