GOSAMPLES
All
Tours
Cheatsheets
Shorts
Go Tutorials & Examples
Learn Go programming by example.
GOSAMPLES
is a library of Go tutorials and examples that helps you solve everyday code problems.
🗑️ 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
cheatsheet
input
March 28, 2022
🕰️ Date and time format in Go cheatsheet
Learn how to format date and time
cheatsheet
time
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
💂 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
March 16, 2022
🩰 Sort a slice of any type using Generics in Go
Learn how to make an universal sorting function using Generics
introduction
generics
generics-intro
March 16, 2022
🔑 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
March 16, 2022
🔍 'Slice contains' function using Generics in Go
Learn how to check if a slice contains a given value using Generics
introduction
generics
generics-intro
March 16, 2022
☯️ 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
March 16, 2022
1
...
5
...
12