Update readme.md

master
Kevin Wan 2 years ago committed by GitHub
parent a8305def3d
commit 98b9a25cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,13 +8,13 @@
var configFile = flag.String("f", "config.yaml", "config file") var configFile = flag.String("f", "config.yaml", "config file")
func main() { func main() {
flag.Parse() flag.Parse()
var c gateway.GatewayConf var c gateway.GatewayConf
conf.MustLoad(*configFile, &c) conf.MustLoad(*configFile, &c)
gw := gateway.MustNewServer(c) gw := gateway.MustNewServer(c)
defer gw.Stop() defer gw.Stop()
gw.Start() gw.Start()
} }
``` ```
@ -60,4 +60,3 @@ protoc --descriptor_set_out=hello.pb hello.proto
```shell ```shell
protoc --include_imports --proto_path=. --descriptor_set_out=hello.pb hello.proto protoc --include_imports --proto_path=. --descriptor_set_out=hello.pb hello.proto
``` ```

Loading…
Cancel
Save