1 Star 4 Fork 0

magicianlyx/GoTask

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log.go 254 Bytes
一键复制 编辑 原始数据 按行查看 历史
lrf123456 提交于 2019-12-18 11:18 +08:00 . 添加测试代码
package pool
import (
"fmt"
"io"
)
var o io.Writer
func SetLog(w io.Writer) {
o = w
}
func printf(format string, vals ...interface{}) {
if o == nil {
return
// o = os.Stdout
}
_, _ = o.Write([]byte(fmt.Sprintf(format, vals...) + "\r\n"))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/magicianlyx/GoTask.git
git@gitee.com:magicianlyx/GoTask.git
magicianlyx
GoTask
GoTask
v1.0.15

搜索帮助