hunk.code_window: 	queryParameter, err := RetrieveQueryParameter(request, name, optional)
   	if err != nil {
   		return 0, err
   	}
   	return strconv.Atoi(queryParameter)
   }
   // RetrieveBooleanQueryParameter  returns the value of a query parameter as a boolean.
   // If optional is set to true, will not return an error when the query parameter is not found.
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit: 	if queryParameter == "" && optional {
   		return 0, nil
   	}
  
hunk.file_path: api/http/request/request.go
hunk.type: add
file: angular.module('portainer.app')
  .directive('rdWidget', function rdWidget() {
    var directive = {
      scope: {
        'ngModel': '='
      },
      transclude: true,
      template: '<div class="widget" ng-transclude></div>',
      restrict: 'EA'
    };
    return directive;
  });
  