implemented Buffered method
This commit is contained in:
		| @ -47,6 +47,10 @@ func (r *Reader) Rune() (rune, error) { | |||||||
| 	return rn, err | 	return rn, err | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func (r *Reader) Buffered() int { | ||||||
|  | 	return r.src.Buffered() | ||||||
|  | } | ||||||
|  |  | ||||||
| // PeekRune returns the next rune in r without advancing reader position. | // PeekRune returns the next rune in r without advancing reader position. | ||||||
| // The next read will return the same rune again. | // The next read will return the same rune again. | ||||||
| func (r *Reader) PeekRune() (rune, error) { | func (r *Reader) PeekRune() (rune, error) { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 milarin
					milarin