docker run \
-it \
--name go-amd64 \
cake233/go-amd64
docker exec -it go-amd64 bash
docker run \
-t \
--rm \
-v "$PWD"/go-project:/app \
-w /app \
-e GOOS=linux \
-e CGO_ENABLED=0 \
cake233/go-amd64 \
go build -trimpath --ldflags "-s -w -buildid=" -v -o main.bin
// go run readme.go
package main
import "fmt"
func main() {
var (
country, proxy_site string
)
country = "China"
proxy_site = "https://goproxy.cn"
fmt.Printf("If you live in\x1b[%dm %v. \x1b[0m\n", 32, country)
fmt.Printf("Then you can run the following\x1b[%dm commands. \x1b[0m\n", 31)
fmt.Println("go env -w GO111MODULE=on")
fmt.Printf("go env -w GOPROXY=%v,direct\n", proxy_site)
}
[main]
name = "go"
tag = ["latest", "2024-02-26"]
os = "debian"
release = "stable"
arch = "amd64"
platform = "linux/amd64"
xorg_or_wayland = false
syntax_version = "0.0.0-alpha.4"
[file]
name = "go_amd64_2024-02-26_12-09.tar.zst"
# This value can be used to verify the integrity of the file
sha256 = "fea1d35bc5251120928dc5793838048f53a9cb06ff2bce92c5669d33561829e8"
# zstd: [1-22]
zstd-level = 22
[file.size]
# Installed size ≈ tar-size
# Installed size is approximately equal to the size of the tar file
tar = "837M"
tar_bytes = 876750336
# Space occupied ≈ tar-size + zstd-size
# You will need to prepare a large enough space before installation.
zstd = "160M"
zstd_bytes = 167323455
[compatibility]
compatible_mode = true
previous_version = "latest02"
# The value is &str, not int
previous_date = "20231127"
previous_tag = "2023-11-27"
previous_file = "go_amd64_2023-11-27_12-09-rootfs.tar.zst"
previous_sha256 = "7f8beef0df3f7958effbcb96b8441b2f3accb2c0ac83f95c84b79b021f2cee90"
current_version = "latest01"
current_date = "20240226"
old_file = "go_amd64_2023-11-13_12-10-rootfs.tar.zst"
old_sha256 = "98c97867a279e22f9ba0cb3c257a37035dfd79daa97dae799be8fedd761ed4c5"
# edition 2021
# DISTRO_NAME=go_amd64
# ROOTFS_FILE=go_amd64_2024-02-26_12-09-rootfs.tar.zst
# SHA256SUM=fea1d35bc5251120928dc5793838048f53a9cb06ff2bce92c5669d33561829e8
# BUILD_DATE=20240226
# BUILD_TAG=2024-02-26
# STATUS=completed
# VERSION=latest01
# END_TIME=12:09
[time]
format = "rfc-3339"
zone = "UTC"
date = 2024-02-26
begin = 2024-02-26 12:02:33.743823095+00:00
start-sync_0 = 12:04:02
start-zstd = 12:04:47
start-sync_1 = 12:09:41
end-sync_1 = 12:09:54
end = 2024-02-26 12:09:54.263963527+00:00
[server]
repo = "cake233/go-amd64"
[server.node1]
name = "cn"
current = false
previous = false
in_sync = false
split = false
[server.node2]
name = "tmoe"
current = true
previous = true
in_sync = false
split = false
[server.node3]
name = "azure"
current = true
previous = true
in_sync = false
split = false
[server.node4]
name = "docker"
current = true
# Environment variables (●>ω<●)
[env]
LANG = "en_US.UTF-8"
PATH = "/go/bin:/usr/local/go/bin${PATH:+:${PATH}}"
GOPATH = "/go"
[version]
ldd = 'ldd (Debian GLIBC 2.36-9+deb12u4) 2.36'
go = 'go version go1.22.0 linux/amd64'
gofmt = '/usr/local/go/bin/gofmt: go1.22.0'
[other]
workdir = "/go"
Content type
Image
Digest
sha256:17b876f76…
Size
312.3 MB
Last updated
almost 3 years ago
docker pull cake233/go-amd64