Add database driver and config module

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-19 17:38:51 +08:00
parent e2345a8d4a
commit dc128c0392
11 changed files with 196 additions and 7 deletions

15
config/default.go Normal file
View File

@@ -0,0 +1,15 @@
package config
var serverDef = server{
Address: ":8000",
DebugMode: false,
FileLogger: false,
}
var databaseDef = database{
Type: "postgres",
Host: "",
Name: "",
Username: "",
Password: "",
}