package
0.0.0-20240627020241-bd77024ea80d
Repository: https://github.com/yinjk/go-utils.git
Documentation: pkg.go.dev

# Functions

* * 创建一个秒表,并且自动开始计时 * @param : active:是否激活秒表,默认传true,当我们解决了性能问题,不想再打印时间日志时,将这里改为false即可(不用再手动去删除每个打印方法) * @return: * @author: yinjk * @time : 2019/4/19 16:59 */.
TimeOutFunc 超时机制,通过timeout表示多少时间超时,超时会返回一个ErrorTimeOut错误.
TimeOutWithResult 超时机制,如果defaultResult为空,超时会返回ErrorTimeOut错误,如果defaultResult不为空,超时会返回defaultResult.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author