Just testing the waters with Golang. Every time a local server was restarted, macOS greeted me with a firewall prompt, asking me to Allow or Deny incoming network connections. One way to suppress this prompt is to run the app explicitly on "localhost:port", rather than mere ":port".

labelname :: Firewall prompt when restarting a local server on macOS