Skip to content

Commit

Permalink
add example link
Browse files Browse the repository at this point in the history
  • Loading branch information
dengsgo committed Aug 27, 2023
1 parent 478066a commit 574473c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,13 @@ func logging(ctx *decor.Context) {

[example](example)这个目录示范了如何正确编写代码来使用 go-decorator 工具。

[**single**](example/single): 这个一个单文件示例,装饰器定义和被装饰的函数都位于一个包内。这种情况无需考虑导入依赖包的问题,按示例代码使用即可。
| Project | Notes |
|-----------------------------------|-----------------------------------------------------------|
| [**single**](example/single) | 这个一个单文件示例,装饰器定义和被装饰的函数都位于一个包内。这种情况无需考虑导入依赖包的问题,按示例代码使用即可。 |
| [**packages**](example/packages) | 该项目示例为装饰器定义和被装饰的函数不在同一个包内,需要使用匿名包导入。 |
| [**datetime**](example/datetime) | Guide 里演示示例所用到的完整代码 |
| [**emptyfunc**](example/emptyfunc) | 演示装饰器中调用和不调用`targetDo()` 的区别 |

[**packages**](example/packages):该项目示例为装饰器定义和被装饰的函数不在同一个包内,需要使用匿名包导入。

更多内容查看 [Guide](#guide) .

Expand Down

0 comments on commit 574473c

Please sign in to comment.