code: func (m *GormCommentRepository) Create(ctx context.Context, comment *Comment, creatorID uuid.UUID) error {
  	defer goa.MeasureSince([]string{"goa", "db", "comment", "create"}, time.Now())
  	comment.ID = uuid.NewV4()
  	// make sure no comment is created with an empty 'markup' value
  	if comment.Markup == "" {
  		comment.Markup = rendering.SystemMarkupDefault
  	}
  	if err := m.db.Create(comment).Error; err != nil {
  		log.Error(ctx, map[string]interface{}{
  			"comment_id": comment.ID,
  			"err":        err,
  		}, "unable to create the comment")
  		return errs.WithStack(err)
  	}
  	// save a revision of the created comment
  	if err := m.revisionRepository.Create(ctx, creatorID, RevisionTypeCreate, *comment); err != nil {
  		return errs.Wrapf(err, "error while creating comment")
  	}
  	log.Debug(ctx, map[string]interface{}{
  		"comment_id": comment.ID,
  	}, "Comment created!")
  
  	return nil
  }
docs: // Create creates a new record.