Russia has invaded Ukraine and already killed tens of thousands of civilians, with many more raped or tortured. It's a
genocide
. We need your help. Let's fight back against the Russian regime.
Help Ukraine! Fight the Russian regime!
GOSAMPLES
All
Shorts
introduction
Learn the basics of Go with practical examples
Please consider supporting us by disabling your ad blocker
📰 String padding in Go
Learn how to print aligned strings padded with spaces
introduction
strings
format
August 27, 2021
🍕 Compare two slices in Go
Learn how to check if two slices are equal
introduction
slice
strings
August 24, 2021
⌛ Temporary file in Go - how to create?
Learn how to create and use a temporary file or folder
introduction
file
August 23, 2021
👣 Print struct variables in Go
Learn how to print struct with variable names
introduction
strings
go-spew
August 20, 2021
🔄 Convert CSV to JSON in Go
Learn how to transform CSV file data to JSON
introduction
file
csv
json
August 17, 2021
🗒️ Read a CSV file in Go
Learn how to read a CSV or TSV file line by line or the whole file at once
introduction
file
csv
August 16, 2021
⚙️ Convert interface to string in Go
Learn how to format any value as a string
introduction
interface
strings
August 12, 2021
⏲️ Measure execution time in Go
Learn how to measure the time taken by a function
introduction
time
August 10, 2021
📁 List files in a directory in Go
Learn how to list files in a folder in 4 different ways
introduction
file
August 9, 2021
📂 Check if a file exists in Go
Learn how to check if a file exists in Go after or before opening it
introduction
file
errors
August 5, 2021
1
...
5
...
7