`Do you want the application "main" to accept incoming network connections?` pop up while running Go applications Every time I am running Go applications on MacOs with this command:

go run main.go


I get this pop up message: 

Do you want the application "main" to accept incoming network connections?


I added Go and all main executable files to Firewall Exceptions but I am still getting this pop ups. I am running out of ideas. Please can anyone help me to get rid of those pop ups? At this point I have no idea if the problem is related to Golang or MacOs.
You can avoid this pop-up when running local tests if you specify the host portion of the address that will be listened to to be &quot;localhost&quot; or &quot;127.0.0.1&quot;. Many programs let you set the address through the command line or an environment variable and many of those programs will default to passing no host to the listen command. With no host specified, Go will listen on 0.0.0.0 and macOS will want to warn you about that. When Go opens ports on the localhost, macOS doesn't warn - at least not in my cases.