1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

add one more project structure recommendation

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-11-19 14:13:42 +02:00
parent d62392bebc
commit 226a4cb064
15 changed files with 1166 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
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 */ }
}