Error : NS_ERROR_FACTORY_NOT_REGISTERED The VirtualBox COM server is not running or failed to start.

If you are facing issue with VirtualBox version 4.3.12 on Mac/Linux and above as posted below, most likely your tmp permissions are not correct.

ERROR: failed to create a session object!
ERROR: code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
Most likely, the VirtualBox COM server is not running or failed to start.

Update the /tmp directory permissions for the user which is trying to use the VirtualBox with the below command and it should resolve the issue.

chmod 1777 /tmp

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...