Skip to content

Commit

Permalink
fix generate project issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jun 26, 2021
1 parent cd77814 commit 3c9c0ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/xservice/gogen/assets/project/README.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install protobuf & generator plugins
```bash
# install specific version (recommended)
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1.1.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
go install github.com/envoyproxy/[email protected]

go install \
Expand All @@ -31,7 +31,7 @@ go install \
install buf

```bash
go install github.com/bufbuild/buf/cmd/buf/main.go@latest
go install github.com/bufbuild/buf/cmd/buf@latest
```

## Initialize project
Expand Down
12 changes: 12 additions & 0 deletions tools/xservice/gogen/assets/project/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# simple config, more config see `config-example.yaml`

http:
address: 0.0.0.0:5000

jaeger:
agent_host: 127.0.0.1
agent_port: 6831

log:
level: debug
format: console
2 changes: 1 addition & 1 deletion tools/xservice/gogen/assets/project/go.mod.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module {{.Module}}

require (
github.com/xinpianchang/xservice v1.0.0
github.com/xinpianchang/xservice latest
)

0 comments on commit 3c9c0ec

Please sign in to comment.