io

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscardWriteCloser

type DiscardWriteCloser struct{}

DiscardWriteCloser is an io.WriteCloser that discards all data written to it.

func (*DiscardWriteCloser) Close

func (d *DiscardWriteCloser) Close() error

Close is a no-op and returns nil.

func (*DiscardWriteCloser) Write

func (d *DiscardWriteCloser) Write(p []byte) (n int, err error)

Write discards the data and returns the length of the data.

Jump to

Keyboard shortcuts

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