code: func extractHost(header string) (host string) {
  	host, _, err := net.SplitHostPort(header)
  	if err != nil {
  		host = header
  	}
  	return host
  }
docs: // Get host from a host header value like "localhost" or "localhost:8080"