code: func (m *GormLabelRepository) Create(ctx context.Context, u *Label) error {
  	defer goa.MeasureSince([]string{"goa", "db", "label", "create"}, time.Now())
  	u.ID = uuid.NewV4()
  	if strings.TrimSpace(u.Name) == "" {
  		return errors.NewBadParameterError("label name cannot be empty string", u.Name).Expected("non empty string")
  	}
  	err := m.db.Create(u).Error
  	if err != nil {
  		// combination of name and space ID should be unique
  		if gormsupport.IsUniqueViolation(err, "labels_name_space_id_unique_idx") {
  			log.Error(ctx, map[string]interface{}{
  				"err":      err,
  				"name":     u.Name,
  				"space_id": u.SpaceID,
  			}, "unable to create label because a label with same already exists in the space")
  			return errors.NewDataConflictError(fmt.Sprintf("label already exists with name = %s , space_id = %s", u.Name, u.SpaceID.String()))
  		}
  		log.Error(ctx, map[string]interface{}{}, "error adding Label: %s", err.Error())
  		return err
  	}
  	return nil
  }
docs: // Create a new label