code: func _getResourceParams(r *raml.Resource, params []string) []string {
  	if r == nil {
  		return params
  	}
  
  	matches := reResourceParam.FindAllString(r.URI, -1)
  	for _, match := range matches {
  		matchEscaped := commons.NormalizeIdentifier(match[1 : len(match)-1])
  		params = append(params, matchEscaped)
  	}
  
  	return _getResourceParams(r.Parent, params)
  }
docs: // _getResourceParams is the recursive function of getResourceParams