go: make StartupSettings a method
This commit is contained in:
parent
c945c9fcb7
commit
5cfad662fc
@ -1,11 +1,12 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/labstack/echo/v4/middleware"
|
||||
)
|
||||
|
||||
func StartupSettings(e *echo.Echo) {
|
||||
func (a *App) StartupSettings() {
|
||||
e := a.E()
|
||||
|
||||
e.HideBanner = true
|
||||
|
||||
e.Use(middleware.Logger())
|
||||
|
2
run.go
2
run.go
@ -28,7 +28,7 @@ func run() error {
|
||||
e := a.E()
|
||||
logger := a.Logger()
|
||||
|
||||
app.StartupSettings(e)
|
||||
a.StartupSettings()
|
||||
|
||||
_, err = config.LoadConfig(*configFlag)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user