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.
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:
As wikipedia states:
software development engineer with passion for coding