diff --git a/text/text.go b/text/text.go index facc377..5ef5b6a 100644 --- a/text/text.go +++ b/text/text.go @@ -141,6 +141,11 @@ func (txt *Text) WriteString(s string) (n int, err error) { return len(s), nil } +func (txt *Text) WriteByte(c byte) error { + _, err := txt.WriteRune(rune(c)) + return err +} + func (txt *Text) WriteRune(r rune) (n int, err error) { n, err = utf8.RuneLen(r), nil // always returns this