Documentation ¶
Index ¶
- func Close(closer io.Closer)
- func EmptyReader() io.Reader
- func ReadAll(reader io.Reader) ([]byte, error)
- func ReadAllLines(reader io.Reader) ([]string, error)
- func ReadAllLinesWithEncoding(reader io.Reader, encoding encoding.Encoding) ([]string, error)
- func ReadAllToString(reader io.Reader) (string, error)
- func ReadAllToStringWithEncoding(reader io.Reader, encoding encoding.Encoding) (string, error)
- func ReadLines(reader io.Reader, consume func(line string)) error
- func ReadLinesWithEncoding(reader io.Reader, encoding encoding.Encoding, consume func(line string)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllLines ¶
ReadAllLines read all data as string lines, till EOF, return a lines slice. The reader will be leaved unclosed
func ReadAllLinesWithEncoding ¶
ReadAllLines read all data as string line with specific encoding till EOF, return a lines slice. The reader will be leaved unclosed
func ReadAllToString ¶
Read and return all data as string in reader
func ReadAllToStringWithEncoding ¶
Read and return all data as string in reader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.