Setup your Go environment
To be able to run Wasmer inside our Go application, we will need Go to be installed in our system.
The easiest way to get Go in your system is to follow the official documentation.
To ensure it is installed, let's run the following:
1
go version # This will show the Go version
Copied!
If this command work, Go is successfully installed!

Start a Go project

Now it's time to create a new project and add Wasmer as a dependency:
1
mkdir wasmer-project
2
cd wasmer-project
3
go mod init github.com/$USER/wasmer-project
Copied!
Now, edit the go.mod file to add wasmer-go as a dependency:
1
require (
2
github.com/wasmerio/wasmer-go v1.0.0
3
)
Copied!
For a detailed installation instructions, please refer to Wasmer Go integration documentation.
Next, let's take a look at some examples!
Last modified 25d ago
Copy link