code: func (g *Gitlab) ResourceUrl(path string, params map[string]string) *url.URL {
  	if params != nil {
  		for key, val := range params {
  			path = strings.Replace(path, key, val, -1)
  		}
  	}
  
  	u, err := url.Parse(g.BaseUrl + g.ApiPath + path)
  	if err != nil {
  		panic("Error while building gitlab url, unable to parse generated url")
  	}
  
  	return u
  }
docs: // ResourceUrl builds an url for given resource path.
  //
  // It replaces path placeholders with values from `params`:
  //
  //   /whatever/:id => /whatever/1
  //