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!


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

πŸ’• Copy a map in Go

Learn how to copy all elements of a map to another
introduction map

βœ‚οΈ Remove duplicates from a slice in Go

Learn how to create a slice with unique values
introduction slice

♾️ Infinite loop in Go

Learn how to define a "while true" loop
introduction loop

πŸ“” 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

πŸ“Ÿ Convert HTTP response io.ReadCloser to string in Go

Learn how to convert a HTTP client response body to string
introduction http

πŸ§‘β€πŸ€β€πŸ§‘ Copy a slice in Go

Learn how to make a deep copy of a slice
introduction slice

πŸ”Ž 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

πŸ’ Concatenate strings in Go

Learn the differences between string concatenation methods
introduction strings

πŸ–¨οΈ Convert string to []byte or []byte to string in Go

Learn the difference between a string and a byte slice
introduction strings slice
1 ... 3 ... 7