This package provides a powerful cross function to kill (Windows / MacOS / Linux) process running on given port.
go get github.com/rimiti/kill-port
# Kill process running on port 80 (HTTP)
$ kill-port 80
# Kill process running on port 443 (HTTPS)
$ kill-port 443
# Kill process running on port 3306 (MySQL)
$ kill-port 3306
MIT Β© Dimitri DO BAIRRO