Skip to content

Instantly share code, notes, and snippets.

@kamal-kambe
Created August 1, 2019 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal-kambe/ce8a2f4973313976f3db2a3e6906b59f to your computer and use it in GitHub Desktop.
Save kamal-kambe/ce8a2f4973313976f3db2a3e6906b59f to your computer and use it in GitHub Desktop.
package service
type BaseFactory interface {
NewBase() Base
}
type baseFactory struct {
StorageFactory
}
func New(sf StorageFactory) BaseFactory {
return &baseFactory{
StorageFactory: bsf
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment