utf8s.RuneScanner docs
parent
3f106d444c
commit
e0bbe43401
16
README.md
16
README.md
|
@ -43,3 +43,19 @@ runeReader := utf8s.NewRuneReader(reader)
|
|||
|
||||
r, n, err := runeReader.ReadRune()
|
||||
```
|
||||
|
||||
```go
|
||||
var reader io.Reader
|
||||
|
||||
// ...
|
||||
|
||||
runeScanner := utf8s.NewRuneScanner(reader)
|
||||
|
||||
// ...
|
||||
|
||||
r, n, err := runeScanner.ReadRune()
|
||||
|
||||
// ...
|
||||
|
||||
err = runeScanner.UnreadRune()
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue