Embed static and templates folder when compiling, RenderTemplate now renders and serves from the embedded filesystem

This commit is contained in:
Maximilian
2023-02-05 12:46:47 -06:00
parent 4f4722350f
commit 1360f93ac3
3 changed files with 41 additions and 4 deletions

View File

@ -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
}