You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example the DefaultBulkStore struct embeds the Store interface, DefaultBulkStore the uses the embedded Store interface to also implement BulkStore.
The text was updated successfully, but these errors were encountered:
Currently, only struct on struct or interface on interface embedding is explained in OOP.md.
It would be nice to have an explanation about embedding interfaces into structs.
Here's a nice example:
https://github.com/dapr/components-contrib/blob/master/state/store.go#L51
In this example the
DefaultBulkStore
struct embeds theStore
interface,DefaultBulkStore
the uses the embeddedStore
interface to also implementBulkStore
.The text was updated successfully, but these errors were encountered: