Embed static and templates folder when compiling, RenderTemplate now renders and serves from the embedded filesystem
This commit is contained in:
@ -3,10 +3,12 @@ package app
|
||||
import (
|
||||
"GoWeb/config"
|
||||
"database/sql"
|
||||
"embed"
|
||||
)
|
||||
|
||||
// App contains and supplies available configurations and connections
|
||||
type App struct {
|
||||
Config config.Configuration
|
||||
Db *sql.DB
|
||||
Config config.Configuration // Configuration file
|
||||
Db *sql.DB // Database connection
|
||||
Res *embed.FS // Resources from the embedded filesystem
|
||||
}
|
||||
|
Reference in New Issue
Block a user