I'm running a simple Go server on a OSX machine. When I run the command to run the Go program it starts the server and open a browser window.
I would like to know if there's a way to when I close that browser window (by the window, not the program) also close the server and quit the terminal.
Thank you in advance.