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
Download 2 files (167 KB)Shell
# 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
FileSizeDetailsDownload
Sample Go filemain.go631 BDownload
Large Go file (about 10,000 lines)sample-10000-lines.go167 KB9,993 linesDownload