mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
15 lines
269 B
Go
15 lines
269 B
Go
package user
|
|
|
|
import "github.com/username/project/pkg/database"
|
|
|
|
type Repository interface { // Repo methods here...
|
|
}
|
|
|
|
type repo struct { // Hold database instance here: e.g.
|
|
db *database.DB
|
|
}
|
|
|
|
func NewRepository(db *database.DB) Repository {
|
|
return &repo{db: db}
|
|
}
|