mirror of
https://github.com/kataras/iris.git
synced 2025-01-27 04:26:33 +01:00
13 lines
244 B
Go
13 lines
244 B
Go
|
package user
|
||
|
|
||
|
type Repository interface { // Repo methods here...
|
||
|
}
|
||
|
|
||
|
type repo struct { // Hold database instance here: e.g.
|
||
|
// *mydatabase_pkg.DB
|
||
|
}
|
||
|
|
||
|
func NewRepository( /* *mydatabase_pkg.DB */ ) Repository {
|
||
|
return &repo{ /* db: db */ }
|
||
|
}
|