fastio

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: BSD-3-Clause, GPL-2.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = discard{}

Discard is like io.Discard, but implements AllWriter.

Functions

func WriteByte

func WriteByte(w io.Writer, b byte) error

func WriteRune

func WriteRune(w io.Writer, r rune) (int, error)

func WriteString

func WriteString(w io.Writer, s string) (int, error)

Types

type AllWriter

type AllWriter interface {
	io.Writer
	io.ByteWriter
	RuneWriter
	io.StringWriter
}

An AllWriter is the union of several common writer interfaces.

func NewAllWriter

func NewAllWriter(inner io.Writer) AllWriter

NewAllWriter wraps an io.Writer turning it in to an AllWriter. If the io.Writer already has any of the other write methods, then its native version of those methods are used.

type RuneWriter

type RuneWriter interface {
	WriteRune(rune) (int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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