Dependency injection, example .env, and config handling
This commit is contained in:
12
app/app.go
Normal file
12
app/app.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user