Skip to content

Instantly share code, notes, and snippets.

@EduardoRFS
Last active August 9, 2023 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EduardoRFS/fc45d13f542c42ff3a9bd46ef2d7a106 to your computer and use it in GitHub Desktop.
Save EduardoRFS/fc45d13f542c42ff3a9bd46ef2d7a106 to your computer and use it in GitHub Desktop.
// hi
func (wr WorkspaceRepository) CreateWorkspace(workspace *models.Workspace) error {
result := wr.db.Table("workspaceszz").
Create(workspace).
Where("foo").
Where("foo2");
return errors.Wrap(
repository_utils.HandleDatabaseError(result),
StrWorkspaceRepositoryCreateWorkspaceErr
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment