2 Star 0 Fork 0

ledao/go-openai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
failer.go 390 Bytes
一键复制 编辑 原始数据 按行查看 历史
package test
import "errors"
var (
ErrTestErrorAccumulatorWriteFailed = errors.New("test error accumulator failed")
)
type FailingErrorBuffer struct{}
func (b *FailingErrorBuffer) Write(_ []byte) (n int, err error) {
return 0, ErrTestErrorAccumulatorWriteFailed
}
func (b *FailingErrorBuffer) Len() int {
return 0
}
func (b *FailingErrorBuffer) Bytes() []byte {
return []byte{}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ledao/go-openai.git
git@gitee.com:ledao/go-openai.git
ledao
go-openai
go-openai
v1.0.10

搜索帮助