Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hexagonal/service/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ type service struct {
productRepo domain.Repository
}

// NewProductService a service struct that attaches to a repository via the Repository interface
func NewProductService(productRepo domain.Repository) *service {
// NewProductService returns a domain.Service backed by the provided domain.Repository.
func NewProductService(productRepo domain.Repository) domain.Service {
return &service{productRepo: productRepo}
}

Expand Down