zeromicro / zeromicro/zero-doc

shorturl例子有点大出入?

Open
#128 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
600
Forks
249
PR merge metrics
No merged PRs in 30d

Description

https://github.com/zeromicro/zero-doc/blob/main/doc/shorturl.md
本人初学者,当然走到第六步的时候,发现出错了(可能是新手).

  1. "goctl rpc proto -src transform.proto -dir ." 报错,"no proto topic";
    改成
    goctl rpc protoc .\transform.proto --go_out=. --go-grpc_out=. --zrpc_out=.
    生成的文件如下:
    image
    没有向教程那般(可能是版本问题)

  2. go run .\transform.go -f .\etc\transform.yaml 报错:
    image

请问大佬,能否跟进维护一下,不然,向我这样的初学者,好难呀!!!~
先谢谢大佬,麻烦看看呀~

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with doc/shorturl.md and reproduce the sixth step using the documented goctl rpc proto command and the alternative protoc command from the report. Compare the generated files and the go run ./transform.go -f ./etc/transform.yaml error with the tutorial; done means the shorturl example matches the current commands and can be followed successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.