DEV Community

Discussion on: Design patterns in Go: Bridge

Collapse
 
cristicurteanu profile image
Cristian Curteanu

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.

Collapse
 
ja7ad profile image
Javad Rajabzadeh

Thanks man