I’ve been using the table based tests pattern in Go for a long time and it has served my purposes well. We are also using it extensively at Saltside. A common code review comment I give is to use the sub test pattern in Go. So I’d…
Every now and then I find developers struggling with handling
time in their tests, so I wanted to address that in this blog post. Typically there would be code that looks something like the below that needs to be tested:
I’m getting questions quite often about how my neovim is configured for Go development. So in this article I intend to describe just that. In the interest of brevity I’ll not cover the setup in general, but rather the Go parts in particular.
We all use a lot of packages when constructing our applications, both internally developed and third party packages. This blog post will show how you can easily mock these packages using
What you need to test in Go is really not much different from any other programming language. Except maybe that you need to take extra care with pointers if you are not coming from that background. Generally I advocate…