Go的测试/ iotest软件包的扩展-Golang开发

时间:2021-05-26 19:06:43
【文件属性】:
文件名称:Go的测试/ iotest软件包的扩展-Golang开发
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-26 19:06:43
BadIO程序包badio包含Go的testing / iotest程序包的扩展,并实现了主要用于测试的Readers和Writers。 安装$ go get github.com/cavaliercoder/badio示例r:= BadIO软件包badio包含Go的testing / iotest软件包的扩展,并实现了主要用于测试的Readers和Writer。 安装$ go获取github.com/cavaliercoder/badio示例r:= badio.NewSequenceReader([] byte(“ na”))p:= make([] byte,20)r.Read(p)fmt.Printf(“ ba%s \ n“,p)//打印:banananananananananana许可版权所有(c)2015 Ryan Armstrong,特此授予获得此软件和相关文档的任何副本的免费许可
【文件预览】:
badio-master
----.travis.yml(49B)
----random_reader_test.go(444B)
----errors_test.go(322B)
----truncate_reader.go(647B)
----doc.go(147B)
----break_reader_test.go(2KB)
----break_reader.go(829B)
----errors.go(549B)
----sequence_reader_test.go(1KB)
----LICENSE(1KB)
----truncate_reader_test.go(1KB)
----random_reader.go(344B)
----Makefile(144B)
----README.md(2KB)
----sequence_reader.go(636B)
----byte_reader_test.go(938B)
----byte_reader.go(556B)

网友评论