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

💂 Filter a slice using Generics in Go

Learn how to remove elements from a slice that do not meet a certain condition using Generics
introduction generics generics-intro

🩰 Sort a slice of any type using Generics in Go

Learn how to make an universal sorting function using Generics
introduction generics generics-intro

🔑 Get a slice of keys from any map using Generics in Go

Learn how to get all keys of a map using Generics
introduction generics generics-intro

🔍 'Slice contains' function using Generics in Go

Learn how to check if a slice contains a given value using Generics
introduction generics generics-intro

☯️ Min and max functions using Generics in Go

Learn how to define min and max functions for any type using Generics
introduction generics generics-intro

📅 YYYY-MM-DD date format in Go

Learn how to format date without time
introduction time

🌯 Wrap and Unwrap errors in Go

Learn how to create and handle an error hierarchy
introduction errors

🎠 Round float to any precision in Go

Learn how to create a universal rounding function
introduction numbers math

🗝️ Check if a map contains a key in Go

Learn how to check if a key exists in a map
introduction map

🐉 Do-while loop in Go

Learn how to simulate a popular programming loop
introduction loop
1 ... 2 ... 7