gengitkan/internal/repository/repository.go

14 lines
227 B
Go
Raw Normal View History

2019-12-01 22:12:13 +01:00
package repository
type Repository struct {
boards BoardRepository
}
func (r *Repository) Boards() BoardRepository {
return r.boards
}
func NewRepository(boards BoardRepository) *Repository {
return &Repository{boards}
}