Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The power of generics in go for the repository pattern? #57

Open
frederikhors opened this issue May 25, 2022 · 1 comment
Open

The power of generics in go for the repository pattern? #57

frederikhors opened this issue May 25, 2022 · 1 comment

Comments

@frederikhors
Copy link

I just found this awesome post: https://hindenbug.io/the-power-of-generics-in-go-the-repository-pattern-for-gorm-7f8891df0934.

What do you think guys?

On reddit the discussion is hot too: https://www.reddit.com/r/golang/comments/u9bti2/the_power_of_generics_in_go_the_repository.

I'm repeating (manually or by code generation) a lot of times the same code in many files for this.

What we can do?

@frederikhors
Copy link
Author

Maybe a post on the Specification pattern (like https://levelup.gitconnected.com/practical-ddd-in-golang-specification-6523d14438e6) would be awesome to clarify and clean up repository code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant