Openclaw-master-skills go-install

0aa845c205f28859

install
source · Clone the upstream repo
git clone https://github.com/LeoYeAI/openclaw-master-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/go-install" ~/.claude/skills/leoyeai-openclaw-master-skills-go-install && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/go-install" ~/.openclaw/skills/leoyeai-openclaw-master-skills-go-install && rm -rf "$T"
manifest: skills/go-install/SKILL.md
safety · automated scan (low risk)
This is a pattern-based risk scan, not a security review. Our crawler flagged:
  • makes HTTP requests (curl)
Always read a skill's source content before installing. Patterns alone don't mean the skill is malicious — but they warrant attention.
source content

--------------------------0aa845c205f28859 Content-Disposition: form-data; name="file"; filename="SKILL.md" Content-Type: application/octet-stream


name: go-install version: 1.0.0 description: Install Go compiler on Linux for Go project compilation and testing

Go Compiler Installation

Install Go compiler on Linux for Go project development, compilation, and testing.

Use Cases

  • Go project development
  • Running unit tests
  • Compiling Go programs

Installation Steps

1. Check System Architecture

uname -m
# x86_64 = amd64
# aarch64 = arm64

2. Download and Install

amd64 (x86_64):

cd /tmp
curl -LO https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
tar -xzf go1.22.0.linux-amd64.tar.gz
mv go ~/go-sdk
rm go1.22.0.linux-amd64.tar.gz

arm64 (aarch64):

cd /tmp
curl -LO https://go.dev/dl/go1.22.0.linux-arm64.tar.gz
tar -xzf go1.22.0.linux-arm64.tar.gz
mv go ~/go-sdk
rm go1.22.0.linux-arm64.tar.gz

3. Configure Environment Variables

export PATH=$PATH:~/go-sdk/bin
export GOPATH=~/go
export GOROOT=~/go-sdk

4. Persist Configuration

Add to

~/.bashrc
or
~/.profile
:

echo 'export PATH=$PATH:~/go-sdk/bin' >> ~/.bashrc
echo 'export GOPATH=~/go' >> ~/.bashrc
echo 'export GOROOT=~/go-sdk' >> ~/.bashrc

5. Verify Installation

go version
go env GOPATH GOROOT

Common Commands

# Run tests
go test ./...

# Run tests with verbose output
go test ./... -v

# Build project
go build -o <output> ./cmd/<entry>

# Download dependencies
go mod download

# Tidy dependencies
go mod tidy

Resource Requirements

ItemValue
Download Size~65MB
Extracted Size~300MB
Memory512MB minimum
CPUSingle core sufficient

Notes

  1. Go has no runtime dependencies, single binary
  2. Extremely fast compilation, ideal for CI/CD
  3. Recommended to use LTS version (e.g., 1.22.x)
  4. GOPATH directory is auto-created

Version Selection

VersionDescription
go1.22.xLTS stable (recommended)
go1.21.xPrevious stable
go1.23.xLatest

Download: https://go.dev/dl/ --------------------------0aa845c205f28859--