Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gabriel403/913c06428d409de6b6c5da4d8512189d to your computer and use it in GitHub Desktop.
Save gabriel403/913c06428d409de6b6c5da4d8512189d to your computer and use it in GitHub Desktop.
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