docs: 优化 README.md 的测试用例描述

This commit is contained in:
kercylan98
2024-01-15 11:12:24 +08:00
parent a026e4cf96
commit 580bab2dfc
20 changed files with 351 additions and 151 deletions

View File

@@ -40,7 +40,8 @@
<span id="NewDispatcher"></span>
> 创建一个新的消息分发器 Dispatcher 实例
示例代码:
**示例代码:**
```go
func ExampleNewDispatcher() {
@@ -111,7 +112,8 @@ func TestNewDispatcher(t *testing.T) {
<span id="NewManager"></span>
> 生成消息分发器管理器
示例代码:
**示例代码:**
```go
func ExampleNewManager() {