mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	helpers: Remove ToReader funcs
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user