title: Running Go as a daemon webserver on CentOS 7
body: <p>I am trying to migrate from PHP to Go and planning to drop nginx alltogether. But I don't know how to run the go http webserver as a deamon in the background and I also don't know how to automatically start the webserver if I make a reboot, or how to kill the process.</p>
  
  <p>With nginx all I do is</p>
  
  <pre><code>$ systemctl start nginx.service
  $ systemctl restart nginx.service
  $ systemctl stop nginx.service
  $ systemctl enable nginx.service
  $ systemctl disable nginx.service
  </code></pre>
  
  <p>This is very convenient, but it seems like I can't do this with Go http server. I have to compile and run it as any other Go program. What solutions do exist for these concerns?</p>