Dependency injection, example .env, and config handling

This commit is contained in:
max
2022-10-20 11:57:41 -05:00
parent dd5b381426
commit 31fc0856b8
3 changed files with 77 additions and 0 deletions

12
app/app.go Normal file
View File

@ -0,0 +1,12 @@
package app
import (
"GoWeb/config"
"database/sql"
)
// App contains and supplies available configurations and connections
type App struct {
Config config.Configuration
Db *sql.DB
}