50% off 所有套餐限时优惠,起价 $2.48/mo
Go

Go

Go is Google's compiled language. Fast, garbage-collected, built for concurrent servers, with a famously simple syntax and a 90-second compile time even for huge codebases. The language behind Docker, Kubernetes, Caddy, and Hugo. Used at Google, Cloudflare, and Uber.

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4,IPV6

Environment Setup

Go 已在系统级别配置于 /etc/profile:

export PATH=$PATH:/usr/local/go/bin

可选(如果您希望 Go 安装的二进制文件在全局可访问):

export GOPATH=/root/go
export PATH=$PATH:$GOPATH/bin

Apply immediately:

source /etc/profile

Workspace Layout

  • /root/go/bin → 通过以下方式安装的二进制文件 go install (除非手动添加到 PATH,否则默认不可用)
  • /root/go/pkg → 编译包缓存
  • /root/go/src → source code

Useful Commands

  • go version → 检查版本
  • go env → 查看环境变量
  • go run → 运行程序
  • go build → compile
  • go install → install

更多开发工具

Related apps.

Deploy Go now. From $2.48/mo.