Skip to content
Back to skills

Go Install

CSecurity

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

  • 2,128 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 6, 2026
ai-agentsgobashtestingci/cd

Security analysis

C71/100
  • mediumUses curl or wget to download content
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned September 6, 2026

npx -y skills add LeoYeAI/openclaw-master-skills --skill go-install --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Install?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Install
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/leoyeai-go-install/badge)](https://www.skillsdirectory.com/skills/leoyeai-go-install)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
--------------------------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

```bash
uname -m
# x86_64 = amd64
# aarch64 = arm64
```

### 2. Download and Install

**amd64 (x86_64):**
```bash
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):**
```bash
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

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

### 4. Persist Configuration

Add to `~/.bashrc` or `~/.profile`:

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

### 5. Verify Installation

```bash
go version
go env GOPATH GOROOT
```

## Common Commands

```bash
# 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

| Item | Value |
|------|-------|
| Download Size | ~65MB |
| Extracted Size | ~300MB |
| Memory | 512MB minimum |
| CPU | Single 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

| Version | Description |
|---------|-------------|
| go1.22.x | LTS stable (recommended) |
| go1.21.x | Previous stable |
| go1.23.x | Latest |

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…