runes

package
v0.0.0-...-c971ce2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package runes contains types and interfaces for writing runes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

Buffer buffers runes.

func (*Buffer) Runes

func (b *Buffer) Runes() []rune

Runes returns the

func (*Buffer) Write

func (b *Buffer) Write(p []rune) (n int, err error)

Write the runes to the buffer. Never errors.

type ByteWriter

type ByteWriter struct {
	io.Writer
}

ByteWriter is a runes.Writer that writes to any given io.Writer.

func (ByteWriter) Write

func (w ByteWriter) Write(p []rune) (n int, err error)

Write to the underlying io.Writer the string bytes for the given runes.

type Writer

type Writer interface {
	// Write writes runes and returns the number of runes written or error if an error occurred.
	Write(p []rune) (n int, err error)
}

Writer is an interface that writes runes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL