update goctl go generator

master
kevin 4 years ago
parent 5f8e0440ec
commit 3b5b8283db

@ -30,12 +30,11 @@ func main() {
conf.MustLoad(*configFile, &c) conf.MustLoad(*configFile, &c)
ctx := svc.NewServiceContext(c) ctx := svc.NewServiceContext(c)
server := rest.MustNewServer(c.RestConf)
defer server.Stop()
engine := rest.MustNewServer(c.RestConf) handler.RegisterHandlers(server, ctx)
defer engine.Stop() server.Start()
handler.RegisterHandlers(engine, ctx)
engine.Start()
} }
` `

Loading…
Cancel
Save