helpers: Remove ToReader funcs

Remove StringToReader and BytesToReader in favor of using the stdlib directly.
This commit is contained in:
Cameron Moore
2016-05-07 16:34:53 -05:00
parent 29ca323a34
commit e2aea65170
6 changed files with 18 additions and 38 deletions

View File

@@ -130,16 +130,6 @@ func ReaderToString(lines io.Reader) string {
return b.String()
}
// StringToReader does the opposite of ReaderToString.
func StringToReader(in string) io.Reader {
return strings.NewReader(in)
}
// BytesToReader does the opposite of ReaderToBytes.
func BytesToReader(in []byte) io.Reader {
return bytes.NewReader(in)
}
// ReaderContains reports whether subslice is within r.
func ReaderContains(r io.Reader, subslice []byte) bool {