parse passed host before using

Same as pull request #27 only for the go webserver

Close issue #15 again

(please bear with me, I never did write go in my life)