io

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCloserWrapFunc added in v1.3.2

func ReadCloserWrapFunc(
	read func(p []byte) (n int, err error),
	close func() error,
) io.ReadCloser

ReadCloserWrapFunc wraps a function into a ReadCloser.

func ReadWrapFunc added in v1.3.2

func ReadWrapFunc(read func(p []byte) (n int, err error)) io.Reader

ReadWrapFunc wraps a function into a Reader.

func WriteCloserWrapFunc added in v1.3.2

func WriteCloserWrapFunc(
	write func(b []byte) (n int, err error),
	close func() error,
) gio.WriteCloser

WriteCloserWrapFunc wraps a function into a WriteCloser.

func WriterWrapFunc added in v1.3.1

func WriterWrapFunc(fn func(b []byte) (n int, err error)) gio.Writer

WriterWrapFunc wraps a function into a Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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