Best way to share Go snippets and project templates As developers, we share code snippets with each other every day. But did you know that there is a way to do that using a dedicated go tool? April 11, 2024
Managing developer tools with Go module Failing to ensure that the same tool versions are run by all developers and in CI can be detrimental. Using Go module for versioning them together with build automation done with e.g. Make is my favorite way of approaching this problem. April 2, 2024
Easy way to implement heaps in Go Dive into the process of implementing heaps in Go using the standard library. Follow along from basic implementations to crafting heaps for your custom types. March 11, 2024
Iterating over integers in Go Go 1.22 brings a new type of loop to the language. From this post you’ll learn how to use the range-over integer loop, which simplifies the traditional for-loop. February 19, 2024
Sorting Slices in Go: Many Ways, Varied Performance There are multiple ways to sort a slice using the sort package and Go 1.21 added even more with it’s generic-powered slices package. If you want to take a look at all of them, or you’ve ever wondered if they are any different in terms of performance (spoiler: they are), then you’re in a good place! January 16, 2024
What’s new in Go 1.21 Go 1.21 adds some exciting new features and improvements to the language. Learn about new built-ins, standard library packages and improvements to generics! September 11, 2023
How to Make the Options Pattern Better In our previous post we implemented and talked about benefits of utilising the options pattern to enhance the API of a library we are developing. We explored how this powerful technique can improve user friendliness, flexibility and maintainability. Today, we are working again on the XYZ company client. We will uncover additional strategies and insights that can further improve the way we leverage options pattern in our codebase. August 1, 2023
Building Flexible APIs with the Options Pattern in Go Have you ever struggled to create an API that is both flexible and easy to use? If so, the functional options pattern in Golang may be just what you need. By using functional options, you can create APIs that can be customised to meet a wide range of use cases, without sacrificing readability or maintainability. May 9, 2023