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:
import ( "fmt" "time" )
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.