14 lines
227 B
Go
14 lines
227 B
Go
package repository
|
|
|
|
type Repository struct {
|
|
boards BoardRepository
|
|
}
|
|
|
|
func (r *Repository) Boards() BoardRepository {
|
|
return r.boards
|
|
}
|
|
|
|
func NewRepository(boards BoardRepository) *Repository {
|
|
return &Repository{boards}
|
|
}
|