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!

Go Tutorials & Examples

Learn Go programming by example. GOSAMPLES is a library of Go tutorials and examples that helps you solve everyday code problems.

Please consider supporting us by disabling your ad blocker

🐾 How to compare strings in Go

shorts introduction strings

🛑 Exit an app in Go

shorts introduction os

💻 How to check your Go version

Learn how to check Go version in CLI, application, or script
introduction version

🔁 Repeat a string in Go

shorts strings

⌚ Unix time in Go [cheatsheet]

Learn how to get, convert and work with the Unix epoch time
cheatsheet time

🦮 A practical introduction to PostgreSQL in Go

Learn how to make CRUD operations in PostgreSQL like a pro
tour postgresql db sql

🥇 How to uppercase the first letter of each word in Go

shorts strings

🔠 String to uppercase in Go

shorts strings

🐘 Best PostgreSQL database drivers and ORMs in Go

Check which PostgreSQL driver and ORM you can use in your next project
list postgresql db sql

🧽 Remove non-alphanumeric characters from a string in Go

Learn how to remove characters that are not letters or numbers from a string
strings regex
1 ... 11