Running as Service
You can run goshs as systemd service easily.
Step 1
You need to create the config file. I suggest creating it in /etc/goshs/.
Now copy over the example config as goshs.json and configure the way you like.
Warning
You will at least need to configure a directory to serve from. For example you could choose /var/www/html if available. You could also create this webroot with sudo mkdir -p /var/www/html and serve from there.
Step 2
Create a systemd service. You can use the example service and copy it to /etc/systemd/system/goshs.service.
Warning
Be sure to match the path to the goshs binary. Placing it in /usr/local/bin/ ensures that a restricted user such as www-data can read and execute it. Adjust the user and group accordingly.
Now all that is left to do is reload the daemon as well as starting and enabling the service.
Go and check if the service is running correctly:
If so you can enable the service so it starts at boot time.