I thought it can be beneficial to share a list of Go packages that are popular in my projects. The list consist of modules used for parsing environment, testing code, logging, database clients and others. You might know all of them but there could be one that makes it worth for you to get through the list.


There are two ways my services get the configuration. One is through environment variables (it’s used on production in k8s deployment) and second through the file (when I’m working locally). For the first one I’m using https://github.com/caarlos0/env package. It is pretty simple…

Keeping your code well formatted is a good practice. Sometimes formatting is sacrificed for delivery time but it comes back eventually. Readability suffers, maintainability too. You need to do small change in the project but you can’t stand this ugly code and you try to fix that too. In the end your small change is flooded with formatting fixes and code review suffers from that. Writing clean, well formatted code should be a habit for every developer and there are tools that can help.

gofmt is a tool that you can use to check your code formatting. You can find…

Source: https://en.wikipedia.org/wiki/Quicksort

One of the most common operation on data that developers do is sorting. Most of us use built-in functions in the programming language we use. And that’s totally fine. But if you want to learn how this actually works you will find out different algorithms and one of them is quick sort, which is one of the most popular and performant around them.

In this post I will show you the basic quick sort implementation in Go and describe step by step how it works. First things first:

What is Quick Sort?

As wikipedia states:

Quicksort is an efficient sorting algorithm, serving as a…

Rafał Gałus

software development engineer with passion for coding

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store