Files
mbase/cmd/mbased/main.go
T
Олег Бородин a53197e432 working commit
2026-05-26 09:58:10 +02:00

43 lines
787 B
Go

/*
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
*/
package main
// @title Service API
// @version 1.0
// @description API documentation
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @query.collection.format multi
// @host localhost
// @basePath /
// @schemes http https
// @query.collection.format multi
import (
"os"
"mbase/app/logger"
"mbase/cmd/mbased/starter"
_ "mbase/app/handler"
)
func main() {
log := logger.NewLoggerWithSubject("main")
sta := starter.NewStarter()
err := sta.Exec()
if err != nil {
log.Errorf("%v", err)
os.Exit(1)
}
os.Exit(0)
}