Help us shape the future of Go! Take the 2026 Go Developer Survey

loopback

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 3 Imported by: 1

README

Package loopback provides io.Writer and io.Reader compatible interfaces that loop back output to input.

© 2019 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this GPL-2 [LICENSE].

Documentation

Overview

Package loopback provides io.Writer and io.Reader compatible interfaces that loop back output to input.

Index

Constants

This section is empty.

Variables

View Source
var NotImplemented = errors.New("Unimplemented")

NotImplemented is the error returned for methods or options that are not implemented.

Functions

func New

func New() io.ReadWriter

New creates a new loopback interface.

Types

type Loopback

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

Loopback holds the pending loopback data.

func (*Loopback) Read

func (l *Loopback) Read(p []byte) (n int, err error)

Read returns data which has been previous written to the loopback.

func (*Loopback) Write

func (l *Loopback) Write(p []byte) (n int, err error)

Write is used to provide data to be looped back for later read operations.

Jump to

Keyboard shortcuts

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