I would just make this "host" and have it as a string. So you could pass like "foobar.com:635" and it would work (like anything ListenAndServe would take).