utf8s.RuneReader docs
parent
709a7447c5
commit
a0aac8c183
12
README.md
12
README.md
|
@ -31,3 +31,15 @@ var r rune
|
|||
|
||||
n, err := utf8s.WriteRune(w, r)
|
||||
```
|
||||
|
||||
```go
|
||||
var reader io.Reader
|
||||
|
||||
// ...
|
||||
|
||||
runeReader := utf8s.NewRuneReader(reader)
|
||||
|
||||
// ...
|
||||
|
||||
r, n, err := runeReader.ReadRune()
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue