README ¶ readuntil advance an io.Reader until a []byte pattern is found. Analagous to bytes.Index Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Index(r io.Reader, pat []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Index ¶ func Index(r io.Reader, pat []byte) (int, error) Index will read the io.Reader until it finds the first instance of pattern and return the number of bytes read. If the patter was not found it will return io.EOF. If the reader is a readseeker then it will seek to that position. Types ¶ This section is empty. Source Files ¶ View all Source files readuntil.go Click to show internal directories. Click to hide internal directories.