null

package
v0.0.0-...-1cf9f48 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package null extends ioutil.Discard and adds an io.WriteCloser and WriteNameCloser for use within u-root.

Index

Constants

This section is empty.

Variables

View Source
var WriteClose io.WriteCloser = devNull(0)

WriteClose is an WriteCloser on which all Write and Close calls succeed without doing anything.

Functions

This section is empty.

Types

type WriteNameCloser

type WriteNameCloser interface {
	io.Writer
	io.Closer
	Name() string
}

WriteNameCloser is the interface that groups Write, Close, and Name methods.

var WriteNameClose WriteNameCloser = devNull(0)

WriteNameClose is an WriteNameCloser on which all Write and Close calls succeed without doing anything, and the Name call returns "null".

Jump to

Keyboard shortcuts

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