GOSAMPLES
All
Tours
Cheatsheets
Shorts
introduction
Learn the basics of Go with practical examples
📝 Convert date or time to string in Go
shorts
introduction
time
March 1, 2023
✨ 5 different ways to loop over a time.Ticker in Go
Learn how to use the popular time.Ticker struct in loops
introduction
time
February 27, 2023
🫘 Count the occurrences of an element in a slice in Go
Learn how to count elements in a slice that meet certain conditions
introduction
generics
generics-intro
December 15, 2022
❤️🩹 Recover function in Go
Learn what it is for and how to use the built-in recover() function
introduction
syntax
builtin
August 24, 2022
🐾 How to compare strings in Go
shorts
introduction
strings
August 2, 2022
�� Exit an app in Go
shorts
introduction
os
August 1, 2022
💻 How to check your Go version
Learn how to check Go version in CLI, application, or script
introduction
version
July 28, 2022
🎲 Generate a random string in Go
Learn how to generate a random string of a fixed length
introduction
random
strings
April 21, 2022
🐤 Create a new file in Go
shorts
introduction
file
April 5, 2022
🧹 Delete or remove a file in Go
shorts
introduction
file
April 5, 2022
1
...
8