The power of generics in go for the repository pattern?

Author: frederikhorsCreated May 25, 2022Updated May 26, 2022

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?

Source: ThreeDotsLabs/wild-workouts-go-ddd-example