code: func NewClient(c *http.Client, gerritURL string) (*Client, error) {
  	u, err := NormalizeGerritURL(gerritURL)
  	if err != nil {
  		return nil, err
  	}
  	pu, err := url.Parse(u)
  	if err != nil {
  		return nil, err
  	}
  	return &Client{c, *pu}, nil
  }
docs: // NewClient creates a new instance of Client and validates and stores
  // the URL to reach Gerrit. The result is wrapped inside a Client so that
  // the apis can be called directly on the value returned by this function.