Go Install

--------------------------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 ---

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Go Install" with this command: npx skills add solidexu/go-install

--------------------------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--

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Go 安装

在 Linux 系统安装并配置 Go 编译器,支持 Go 项目编译、测试及依赖管理操作。

Registry SourceRecently Updated
980Profile unavailable
General

Go Production Engineering

Expertise in Go project architecture, error handling, concurrency safety, testing, observability, configuration, CI/CD, and documentation for production depl...

Registry SourceRecently Updated
3080Profile unavailable
Coding

TickTick CLI (ttg)

Manage TickTick tasks and projects via the `ttg` CLI (github.com/dhruvkelawala/ticktick-go). Full CRUD, checklists/subtasks with progress display, reminders,...

Registry SourceRecently Updated
1180Profile unavailable
Coding

agentcli-go

agentcli-go framework reference for building Go CLI tools. Use when working on agentcli-go itself, scaffolding new CLI projects, adding commands, integrating...

Registry SourceRecently Updated
3090Profile unavailable