Some time ago I wrote about how to create a balanced binary search tree. The search keys and the data payload were both plain strings. Now it is time to get rid of this limitation. go2go lets us do that while waiting for the official generics release.
GoReleaser Pro was released about a month ago, and with it, the ability to include GoReleaser config files.
In practice, within an organization, is common to have either shared pieces of configuration, if not sharing the entire files within several projects. We all been there, an...
When searching for examples of HTTP basic authentication with Go, every result I could find unfortunately contained code which is either out-of-date (i.e. doesn't use the r.BasicAuth() functionality that was introduced in Go 1.4) or doesn't protect against timing attacks.
So in...
A couple of years ago, I worked in a SaaS company that suffered from probably all possible issues with software development.
Code was so complex that adding simples changes could take months.
All tasks and the scope of the project were defined by the project manager alone.
Develo...
Author(s): Changkun Ou
Permalink: https://golang.design/research/cgo-handle
In the Go 1.17 release, we contributed a new cgo facility runtime/cgo.Handle in order to help future cgo applications better and easier to build concurrent-safe applications while passing pointers betwee...
Using Postgres template databases + migrations for fast tests.
Ok, to be frank, this article is mostly about the second part of the title. We will build a market simulation with minimal Go code, and show how the rich get richer even when they are not greedy at all.