Recent Posts


Running a Go application as a windows service

This week I was looking to run a golang application as a windows service. Came across this neat library by github user kardianos on his github repo. It basically allows you to run Go programs as a service not just on Windows but also on Linux and that other OS (OSX) I dont like to talk about ;)

Following is the source of a simple console application that can run as a windows service with commands for install and uninstall


Golang live-reload with Virtualbox shared folders

This week I was looking into a live reload solution for a golang project I was working on. The project is targeted at linux only.
My development machine is running Windows 10 and I am building and debugging the Go project on a Virtualbox VM running Ubuntu 18.10 with the project source code shared to the VM via virtualbox shared folders.

Due to using a virtualbox shared folder, filesystem events from Windows 10 are not picked up in the guest linux virtual machine. There are a few existing live reload utilities but none of them supported legacy polling (as far as I know) and so they didnt work for me. I came across Nodemon which does support legacy polling.

These are my notes on a live-reload solution using nodemon and a bash script when using virtualbox shared folders.


Copyright (c) 2021 Julien Dcruz