Testing

How to test TCP/UDP connections in Go - Part 1

Learn how to test that your TCP connections return the desired output.

William Gough

7 minute read

For a recent work task, I had to expose a key-value store (which was normally accessed through REST API) via packet and stream based protocols such as TCP and UDP in a REST-esque manner. This presented an exciting challenge for me as I am relatively new to writing Go professionally and I wanted to ensure a number of things: