wasmer-go
wasmer-go copied to clipboard
Fail to execute the simple.go example.
Summary
Fail to execute the simple.go example.
Additional details
When executing the https://github.com/wasmerio/wasmer-go/blob/master/examples/appendices/simple.go example, it prints : no required module provides package github.com/wasmerio/wasmer-go/wasmer: go.mod file not found in current directory or any parent directory; see 'go help modules'
get this:
go get github.com/wasmerio/wasmer-go/wasmer
go mod init xxx
I was having this problem but solved it by adding my project directory to my go.work file... idk if this helps (and it's also been a year+ since you asked, but i found your post in trying to solve my own problem and wanted to share what worked for me)