Compare commits
No commits in common. "b955f583f48b337baf2e264c2c1d7c8010672b98" and "cd1f1dfb444b844b673b76a504c0407da536f5b2" have entirely different histories.
b955f583f4
...
cd1f1dfb44
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,5 +13,3 @@
|
|||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Dependency directories (remove the comment below to include it)
|
||||||
# vendor/
|
# vendor/
|
||||||
|
|
||||||
zengo
|
|
||||||
|
@ -59,7 +59,6 @@ type App struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) Run(config *config.Config) error {
|
func (a *App) Run(config *config.Config) error {
|
||||||
r := setupRouter()
|
a.Router = setupRouter()
|
||||||
a.Router = r
|
|
||||||
return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port))
|
return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port))
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@ -8,6 +8,6 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
config := config.GetConfig()
|
config := config.GetConfig()
|
||||||
|
|
||||||
app := app.App{}
|
app := &app.App{}
|
||||||
app.Run(config)
|
app.Run(config)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user