T.Parallel() In Go Tests

Earlier this year I learned that I could make my Go unit test faster, it turned out I wasn’t using the t.Parallel method to its full potential. Say you have the following package. 1 2 3 4 5 6 7 8 9 package example func PrintHello() string { return "Hello, World!" } func PrintGoodbye() string { return "Goodbye, World!" } With the following tests ...

November 5, 2025 · Yunier

VSCode Configuration to attach to a container running in a kubernetes cluster

VSCode is an amazing text editor, it offers a wide variety of features and an awesome list of extensions. One feature that I like to use is “Attach to a container in a Kubernetes cluster”, that is attaching my code to a running instance of my app running in my local kubernetes cluster. Super useful if you need to test, debug or monitor your app while it is running. I recently found myself in a situation where I had to restart the app and reattached myself to the container over and over again. It became tedious to find the pod in the Kubernetes view, right clicking on the pod once I found it to select the attach option. Having to do this over and over again prompted me to look into whether this could be easier to do via some configuration. I wanted something that would allow me to easily attach to a pod. I looked around the web and found nothing so this is what I came up with. ...

November 4, 2025 · Yunier

Go - Multiple Return Values

I’ve been spending the last few weeks learning Go by reading Learning Go by Jon Bodner, so far I’ve been enjoying learning about Go, though there is still one thing I keep tripping over, in Go, you can return one or more values, for me Go is the first language that I have worked with that does that, in every other language I had to introduce a custom discriminating union to achieve what Go does natively. ...

August 1, 2023 · Yunier