DEV Community

Discussion on: Design patterns in Go: Bridge

cristicurteanu profile image
Cristian Curteanu Author

Of course. The entire idea of this pattern is to have a higher level component that operates with abstractions that can be injected into it. You can extend for N number of database driver implementations, and based on configs to choose which driver will be used in a certain scenario.

ja7ad profile image
Javad Rajabzadeh

Thanks man