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
Tours
Cheatsheets
Shorts
introduction
Learn the basics of Go with practical examples
Please consider supporting us by disabling your ad blocker
π Do-while loop in Go
Learn how to simulate a popular programming loop
introduction
loop
February 22, 2022
π Copy a map in Go
Learn how to copy all elements of a map to another
introduction
map
February 16, 2022
βοΈ Remove duplicates from a slice in Go
Learn how to create a slice with unique values
introduction
slice
February 4, 2022
βΎοΈ Infinite loop in Go
Learn how to define a "while true" loop
introduction
loop
December 2, 2021
π Convert a struct to io.Reader in Go
Learn how to convert a struct to io.Reader and send it as an HTTP POST request body
introduction
http
December 1, 2021
π Convert HTTP response io.ReadCloser to string in Go
Learn how to convert a HTTP client response body to string
introduction
http
November 29, 2021
π§βπ€βπ§ Copy a slice in Go
Learn how to make a deep copy of a slice
introduction
slice
November 25, 2021
π Check if the slice contains the given value in Go
Learn how to write a function that checks if a slice has a specific value
introduction
slice
November 5, 2021
π Concatenate strings in Go
Learn the differences between string concatenation methods
introduction
strings
October 31, 2021
π¨οΈ Convert string to []byte or []byte to string in Go
Learn the difference between a string and a byte slice
introduction
strings
slice
October 13, 2021
1
...
3
...
7