ReadRune reads the next rune from the reader. This is a wrapper function to implement the io.RuneReader interface. Note that this function does not return size.
()
| 393 | // This is a wrapper function to implement the io.RuneReader interface. |
| 394 | // Note that this function does not return size. |
| 395 | func (r *reader) ReadRune() (ch rune, size int, err error) { |
| 396 | ch, _ = r.read() |
| 397 | if ch == eof { |
| 398 | err = io.EOF |
| 399 | } |
| 400 | return |
| 401 | } |
| 402 | |
| 403 | // UnreadRune pushes the previously read rune back onto the buffer. |
| 404 | // This is a wrapper function to implement the io.RuneScanner interface. |
no test coverage detected