Cookies management by TermsFeed Cookie Consent
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!

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

🐤 Create a new file in Go

shorts introduction file

🧹 Delete or remove a file in Go

shorts introduction file

🦥 Ternary operator in Go

Learn how to substitute a ternary operator not available in Go
introduction syntax

✌️ 4 ways to create or print string with double quotes in Go

Learn how to create and print double-quoted string
introduction strings

🗑️ 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

⌨️ Read user input in Go [cheatsheet]

Learn what is the best method to read user input
introduction input cheatsheet

🕰️ Date and time format in Go cheatsheet

Learn how to format date and time
introduction time cheatsheet

🔉 Reduce function using Generics in Go

Learn how to define a function to accumulate slice values using Generics
introduction generics generics-intro

🦾 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
1 ... 7