Fix go function bug

Update go function to allow multiple protocols, not just http:// to work
correctly.
If there is no protocol detected then assume http.
Fixes #29.