You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
309 B
20 lines
309 B
package main
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
"product/backend/handlers"
|
|
"product/backend/models"
|
|
"product/backend/moo/config"
|
|
"product/backend/moo/db"
|
|
)
|
|
|
|
func main() {
|
|
// initial
|
|
config.Init()
|
|
db.Init()
|
|
models.Init()
|
|
|
|
engine := handlers.Init()
|
|
_ = engine.Run(viper.GetString("app.main.addr"))
|
|
}
|