might be better to just use a URL type and set the scheme: http://golang.org/pkg/net/url/