Code · 2 files
Sample Go Files
Go is a simple, compiled language designed at Google for networked services. The Go sample is a small program — a customer record, a VIP check and a formatted total — that is the same in every language we offer, so you can compare them side by side.
All 2 go files
Download all with curl
# 2 files, 167 KB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/code/go/main.go
https://files.samplefiles.com/code/go/sample-10000-lines.go
EOF| File | Size | Details | Download |
|---|---|---|---|
| Sample Go filemain.go | 631 B | Download | |
| Large Go file (about 10,000 lines)sample-10000-lines.go | 167 KB | 9,993 lines | Download |