init(web): add main.go file

This commit is contained in:
Masahiko AMANO 2025-01-07 17:04:52 +03:00
parent 1acb32aea0
commit 6ed054d56a

18
web/cmd/main.go Normal file
View File

@ -0,0 +1,18 @@
package main
import (
"log"
"github.com/H1K0/SkazaNull/conf"
"github.com/H1K0/SkazaNull/db"
"github.com/H1K0/SkazaNull/server"
)
func main() {
config, err := conf.GetConf()
if err != nil {
log.Fatalf("error while loading configuration file: %s\n", err)
}
db.InitDB(config.DBConfig)
server.Serve(config.Interface, []byte(config.EncryptionKey))
}