file

package
v0.0.0-...-a13b488 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir

func CleanDir(dir string) error

func Copy

func Copy(src, dest string) error

func Exists

func Exists(path string) bool

func Stat

func Stat(path string) (fs.FileInfo, error)

Types

type CompressWriter

type CompressWriter struct {
	*os.File
	Writer io.WriteCloser
}

func NewCompressWriter

func NewCompressWriter(file *os.File, writer io.WriteCloser) *CompressWriter

func (*CompressWriter) Close

func (cw *CompressWriter) Close() error

func (*CompressWriter) Write

func (cw *CompressWriter) Write(p []byte) (int, error)

type FileLike

type FileLike interface {
	io.WriteCloser
	Name() string
}

type MultiFile

type MultiFile struct {
	io.Writer
	// contains filtered or unexported fields
}

func NewMultiFile

func NewMultiFile(files ...FileLike) *MultiFile

func (*MultiFile) Chtimes

func (mf *MultiFile) Chtimes(mtime time.Time) error

func (*MultiFile) Close

func (mf *MultiFile) Close() error

func (*MultiFile) Name

func (mf *MultiFile) Name() string

Jump to

Keyboard shortcuts

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