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

This commit is contained in:
Maximilian committed 2023-02-05 12:46:47 -06:00
1 parent 4f4722350f
commit 1360f93ac3
3 files changed
+41 -4

No files matched your search

+4 -2
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
}