Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: geerpc-day1.md #38

Merged
merged 1 commit into from
May 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gee-rpc/doc/geerpc-day1.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Header struct {
- Error 是错误信息,客户端置为空,服务端如果如果发生错误,将错误信息置于 Error 中。


我们将和消息编解码相关的代码都防到 codec 子目录中,在此之前,还需要在根目录下使用 `go mod init geerpc` 初始化项目,方便后续子 package 之间的引用。
我们将和消息编解码相关的代码都放到 codec 子目录中,在此之前,还需要在根目录下使用 `go mod init geerpc` 初始化项目,方便后续子 package 之间的引用。

进一步,抽象出对消息体进行编解码的接口 Codec,抽象出接口是为了实现不同的 Codec 实例:

Expand Down Expand Up @@ -439,4 +439,4 @@ reply: geerpc resp 4
## 附 推荐阅读

- [Go 语言简明教程](https://geektutu.com/post/quick-golang.html)
- [Go 语言笔试面试题](https://geektutu.com/post/qa-golang.html)
- [Go 语言笔试面试题](https://geektutu.com/post/qa-golang.html)