print message when starting api server

This commit is contained in:
kevin
2020-09-16 13:27:16 +08:00
parent a50bcb90a6
commit a561884fcf
6 changed files with 112 additions and 112 deletions

View File

@@ -1,10 +1,12 @@
package main
import (
"flag"
"fmt"
"bookstore/api/internal/config"
"bookstore/api/internal/handler"
"bookstore/api/internal/svc"
"flag"
"github.com/tal-tech/go-zero/core/conf"
"github.com/tal-tech/go-zero/rest"
@@ -23,5 +25,7 @@ func main() {
defer server.Stop()
handler.RegisterHandlers(server, ctx)
fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)
server.Start()
}