添加 config load

This commit is contained in:
2024-10-28 11:54:56 +08:00
parent 1da5d144c9
commit 3b0a0001df
4 changed files with 79 additions and 0 deletions

16
config/model.go Normal file
View File

@@ -0,0 +1,16 @@
package config
var (
ListenPort int
File string
DB database
)
type database struct {
Path string
//Port string
//User string
//Password string
// enable if you want use an instance other than SQLite
}