diff --git a/.gitignore b/.gitignore index 66fd13c..08caaf2 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +zengo diff --git a/app/app.go b/app/app.go index 38f2169..7588084 100644 --- a/app/app.go +++ b/app/app.go @@ -59,6 +59,7 @@ type App struct { } func (a *App) Run(config *config.Config) error { - a.Router = setupRouter() + r := setupRouter() + a.Router = r return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port)) } diff --git a/main.go b/main.go index c609cdf..cdd9904 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,6 @@ import ( func main() { config := config.GetConfig() - app := &app.App{} + app := app.App{} app.Run(config) } diff --git a/run b/run new file mode 100755 index 0000000..d155819 --- /dev/null +++ b/run @@ -0,0 +1,3 @@ +#!/bin/sh -e + +go run main.go \ No newline at end of file