docs: 优化 README.md 包级函数不显示泛型签名的情况

This commit is contained in:
kercylan98
2024-01-15 10:54:27 +08:00
parent e7e679ea86
commit a026e4cf96
40 changed files with 389 additions and 377 deletions

View File

@@ -38,7 +38,7 @@
> 运行持久化缓存程序
***
#### func BindPersistCacheProgram(name string, handler OutputParamHandlerFunc, option ...*Option) func ()
#### func BindPersistCacheProgram\[OutputParamHandlerFunc any\](name string, handler OutputParamHandlerFunc, option ...*Option) func ()
<span id="BindPersistCacheProgram"></span>
> 绑定持久化缓存程序
> - name 持久化缓存程序名称
@@ -52,7 +52,7 @@
> - 所有持久化程序绑定完成后,应该主动调用 Run 函数运行
***
#### func BindAction(name string, handler Func) Func
#### func BindAction\[Func any\](name string, handler Func) Func
<span id="BindAction"></span>
> 绑定需要缓存的操作函数
> - name 缓存操作名称