From 98b9a25cc72857aa024b2cdcea10f074f5d284bb Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sun, 7 Aug 2022 11:13:34 +0800 Subject: [PATCH] Update readme.md --- gateway/readme.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gateway/readme.md b/gateway/readme.md index e3474f63..e8158129 100644 --- a/gateway/readme.md +++ b/gateway/readme.md @@ -8,13 +8,13 @@ var configFile = flag.String("f", "config.yaml", "config file") func main() { - flag.Parse() + flag.Parse() - var c gateway.GatewayConf - conf.MustLoad(*configFile, &c) - gw := gateway.MustNewServer(c) - defer gw.Stop() - gw.Start() + var c gateway.GatewayConf + conf.MustLoad(*configFile, &c) + gw := gateway.MustNewServer(c) + defer gw.Stop() + gw.Start() } ``` @@ -60,4 +60,3 @@ protoc --descriptor_set_out=hello.pb hello.proto ```shell protoc --include_imports --proto_path=. --descriptor_set_out=hello.pb hello.proto ``` -