freeport icon indicating copy to clipboard operation
freeport copied to clipboard

check errors from close, init go.mod, add MustGetPort, +

Open PotatoesFall opened this issue 2 years ago • 0 comments

  • errors from close are not currently checked even though closing the listener is a key step to freeing the port again.
  • GetPort being deprecated I find silly since we don't usually expect an error, added a Must* alias
  • Simplified the whole double step with ResolveTCP and ListenTCP with simple Listen
  • Added entry for simple go install which is standard way to install a go binary for everybody who has go
  • Added a go.mod file
  • Reformatted markdown file to adhere to standard
  • Wrap error messages
  • refactor, removing code duplication and pre-allocating known-size slices
  • remove unnecessary newline at the end of output in main.go, leading to potential problems

PotatoesFall avatar Jul 18 '22 10:07 PotatoesFall