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
🎲 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
🦥 Ternary operator in Go
Learn how to substitute a ternary operator not available in Go
introduction
syntax
April 1, 2022
✌️ 4 ways to create or print string with double quotes in Go
Learn how to create and print double-quoted string
introduction
strings
March 31, 2022
🗑️ Remove duplicates from any slice using Generics in Go
Learn how to create a slice with unique values using Generics
introduction
slice
generics
generics-intro
March 30, 2022
⌨️ Read user input in Go [cheatsheet]
Learn what is the best method to read user input
introduction
input
cheatsheet
March 28, 2022
🕰️ Date and time format in Go cheatsheet
Learn how to format date and time
introduction
time
cheatsheet
March 23, 2022
🔉 Reduce function using Generics in Go
Learn how to define a function to accumulate slice values using Generics
introduction
generics
generics-intro
March 16, 2022
🦾 Create a slice 'map' function using Generics in Go
Learn how to apply a function to all slice elements using Generics
introduction
generics
generics-intro
March 16, 2022
1
...
7