utf8s.RuneReader docs

master
Charles Iliya Krempeaux 2018-07-10 20:43:45 -07:00
parent 709a7447c5
commit a0aac8c183
2 changed files with 25 additions and 0 deletions

View File

@ -31,3 +31,15 @@ var r rune
n, err := utf8s.WriteRune(w, r) n, err := utf8s.WriteRune(w, r)
``` ```
```go
var reader io.Reader
// ...
runeReader := utf8s.NewRuneReader(reader)
// ...
r, n, err := runeReader.ReadRune()
```

13
doc.go
View File

@ -24,6 +24,19 @@ Example
n, err := utf8s.WriteRune(w, r) n, err := utf8s.WriteRune(w, r)
Example
var reader io.Reader
// ...
runeReader := utf8s.NewRuneReader(reader)
// ..
r, n, err := runeReader.ReadRune()
Example Example
var r rune var r rune