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