GO sample file
go_sample_file_2MB.go
2.0 MB
application/octet-stream
SHA256 verified
File details
Filename
go_sample_file_2MB.goSize2.0 MB (2097228 bytes)
MIME type
application/octet-streamExtension
.goSHA256
6dcadd9b42e63e0f7363f201f7058cb2bb9a0eae39b71630de3e0874b633f8a9Download commands
Use in scripts and tests
curl -L -o go_sample_file_2MB.go \
https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/
wget -O go_sample_file_2MB.go \
https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/
import requests
url = "https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/"
resp = requests.get(url)
with open("go_sample_file_2MB.go", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("go_sample_file_2MB.go", buf);
# Download and verify SHA256
curl -L -o go_sample_file_2MB.go https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/
echo "6dcadd9b42e63e0f7363f201f7058cb2bb9a0eae39b71630de3e0874b633f8a9 go_sample_file_2MB.go" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/go/go_sample_file_2MB.go/").content
assert hashlib.sha256(data).hexdigest() == "6dcadd9b42e63e0f7363f201f7058cb2bb9a0eae39b71630de3e0874b633f8a9"
More GO files
Other GO Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
go_sample_file_1MB.go |
1.0 MB | a9d739e17ac03184… |
Download |
go_sample_file_200KB.go |
200.0 KB | 55324d788099afba… |
Download |
go_sample_file_500KB.go |
500.0 KB | 53367f7ab378e077… |
Download |
go_sample_file_50KB.go |
50.0 KB | 3c31eb6863618043… |
Download |
go_sample_file_5MB.go |
5.0 MB | 796129ab7dcec41d… |
Download |
Learn more