Uploaded March 2026 | Updated November 2026, 3 days ago
Welcome to our Tebeka Shorts series, episode 53! A series of short videos surrounding features in the GO language taught by Miki Tebeka. -- In this video, Miki demonstrates demonstrates an efficient way to automate the selection of network ports for software testing. -- Watch now to learn more about random free ports in Go.
Things you will learn in this episode:
- Running parallel tests
- Utilizing port zero
- Creating a TCP listener
- Extracting the port number
By configuring a TCP listener to use port zero, developers can request that the operating system automatically assign an available, randomized port. This technique is particularly valuable for running parallel tests without encountering address collisions or conflicts. The tutorial explains how to extract the specific port number from the resulting network address through type assertion in the Go language. This approach ensures that every test instance operates on a unique and free connection, streamlining the development and debugging process.
----
Comment below or tweet us on twitter & let us know your thoughts, we want to hear from you! ~ If you found this video helpful, hit that like button & subscribe for more content like this.
----
Access our online courses → ardanlabs.com/education
Attending a live training → ardanlabs.com/live-training-events
Other Links:
Website: ardanlabs.com
Github: github.com/ardanlabs
X: twitter.com/ardanlabs
LinkedIn: linkedin.com/ardanlabs
#golang #goprogramming #education #tutorials #tips #randomfreeports
Welcome to our Tebeka Shorts series, episode 53! A series of short videos surrounding features in the GO language taught by Miki Tebeka. -- In this video, Miki demonstrates demonstrates an efficient way to automate the selection of network ports for software testing. -- Watch now to learn more about random free ports in Go.
Things you will learn in this episode:
- Running parallel tests
- Utilizing port zero
- Creating a TCP listener
- Extracting the port number
By configuring a TCP listener to use port zero, developers can request that the operating system automatically assign an available, randomized port. This technique is particularly valuable for running parallel tests without encountering address collisions or conflicts. The tutorial explains how to extract the specific port number from the resulting network address through type assertion in the Go language. This approach ensures that every test instance operates on a unique and free connection, streamlining the development and debugging process.
----
Comment below or tweet us on twitter & let us know your thoughts, we want to hear from you! ~ If you found this video helpful, hit that like button & subscribe for more content like this.
----
Access our online courses → ardanlabs.com/education
Attending a live training → ardanlabs.com/live-training-events
Other Links:
Website: ardanlabs.com
Github: github.com/ardanlabs
X: twitter.com/ardanlabs
LinkedIn: linkedin.com/ardanlabs
#golang #goprogramming #education #tutorials #tips #randomfreeports










