io

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = io.Discard
View Source
var EOF = io.EOF

Functions

func Clear added in v0.0.4

func Clear(dir string) error

func Copy

func Copy(dst Writer, src Reader) (written int64, err error)

func CopyFile

func CopyFile(src, dst string) error

func DirExists

func DirExists(path string) bool

func ErrFromContext

func ErrFromContext(ctx context.Context) io.Writer

func ErrWithContext

func ErrWithContext(ctx context.Context, err io.Writer) context.Context

func FileExists

func FileExists(path string) bool

func Move added in v0.0.4

func Move(sdir, ddir string) error

func OutFromContext

func OutFromContext(ctx context.Context) io.Writer

func OutWithContext

func OutWithContext(ctx context.Context, out io.Writer) context.Context

func WithReadAction added in v0.0.7

func WithReadAction(r io.Reader, f func(io.Reader) error) (io.Reader, error)

Types

type Reader

type Reader = io.Reader

type Writer

type Writer = io.Writer

Jump to

Keyboard shortcuts

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