Created
June 25, 2018 09:36
-
-
Save gabriel403/913c06428d409de6b6c5da4d8512189d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ProductBrandingService interface { | |
CreateForCompany(*ProductBranding) error | |
} | |
func NewProductBrandingService() (ProductBrandingService, error) { | |
return pgProductBrandingService{}, nil | |
} | |
type pgProductBrandingService struct{} | |
func (s pgProductBrandingService) CreateForCompany(productBranding ProductBranding) error { | |
return nil | |
} | |
foo := NewProductBrandingService() | |
foo.CreateForCompany(ProductBranding{}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment