/
Downloading the Go agent

Downloading the Go agent

Agent Files

To integrate SeaLigts with your Golang project, you will need two different agent files: the slgoagent and the slcli. Depending on your OS, the SeaLights Go Agent files can be downloaded from:

Where OS_ARCH is one of: darwin-amd64, darwin-arm64, linux-amd64, linux-arm64

Download a token from the SeaLights dashboard and place the sltoken.txt file in the working directory.
See 'Generating an Agent token' for instructions on how to generate a token.

Sample script

Downloading latest version

echo "[Sealights] Downloading Sealights Golang & CLI Agents..." wget -nv -O sealights-go-agent.tar.gz https://agents.sealights.co/slgoagent/latest/slgoagent-linux-amd64.tar.gz wget -nv -O sealights-slcli.tar.gz https://agents.sealights.co/slcli/latest/slcli-linux-amd64.tar.gz tar -xzf ./sealights-go-agent.tar.gz && tar -xzf ./sealights-slcli.tar.gz rm -f ./sealights-go-agent.tar.gz ./sealights-slcli.tar.gz ./slgoagent -v 2> /dev/null | grep version && ./slcli -v 2> /dev/null | grep version

Downloading a specific version

You should replace “latest” with the desired version when downloading a specific version. Please notice the format of the specific version URL that includes the v prefix.

# Architectures available: darwin-amd64, darwin-arm64, linux-amd64, linux-arm64 SL_OS_ARCH=linux-amd64 SL_GO_AGENT_VERSION=v1.1.183 SL_CLI_AGENT_VERSION=v1.0.46 echo "[Sealights] Downloading Sealights Golang & CLI Agents..." wget -nv -O sealights-go-agent.tar.gz https://agents.sealights.co/slgoagent/${SL_GO_AGENT_VERSION}/slgoagent-${SL_OS_ARCH}.tar.gz wget -nv -O sealights-slcli.tar.gz https://agents.sealights.co/slcli/${SL_CLI_AGENT_VERSION}/slcli-${SL_OS_ARCH}.tar.gz tar -xzf ./sealights-go-agent.tar.gz && tar -xzf ./sealights-slcli.tar.gz rm -f ./sealights-go-agent.tar.gz ./sealights-slcli.tar.gz ./slgoagent -v 2> /dev/null | grep version && ./slcli -v 2> /dev/null | grep version

Related content

Using Go Agent - Initializing agent and Generating a session ID
Using Go Agent - Initializing agent and Generating a session ID
More like this
Using Go Agent - Running your instrumented application for testing
Using Go Agent - Running your instrumented application for testing
More like this
Using Go Agent - Scanning a build
Using Go Agent - Scanning a build
Read with this
Generating an Agent token
Generating an Agent token
More like this
Using Node.js Agent - Ignoring Files or Folders
Using Node.js Agent - Ignoring Files or Folders
Read with this
Using Go Agent - Running your Tests
Using Go Agent - Running your Tests
More like this