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 Goarrow-up-right in your system is to follow the official documentationarrow-up-right.

To ensure it is installed, let's run the following:

go version # This will show the Go version
circle-check

Start a Go project

Now it's time to create a new project and add Wasmer as a dependency:

mkdir wasmer-project
cd wasmer-project
go mod init github.com/$USER/wasmer-project

Now, edit the go.mod file to add wasmer-go as a dependency:

require (
    github.com/wasmerio/wasmer-go v1.0.0
)
circle-info

For a detailed installation instructions, please refer to Wasmer Go integration documentationarrow-up-right.

Next, let's take a look at some examples!

Exampleschevron-right

Last updated

Was this helpful?