filesystem

package
v0.0.0-...-c13075e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	// io.Closer
	// io.Reader
	// io.ReaderAt
	// io.Seeker
	Sync() error
	Stat() (os.FileInfo, error)
	Write(b []byte) (n int, err error)
}

File interface used so we can mock during tests

type FileInfo

type FileInfo any

FileInfo interface used so we can mock during tests

type FileSystem

type FileSystem interface {
	Open(name string) (*os.File, error)
	Stat(name string) (FileInfo, error)
	MkdirAll(path string, perm os.FileMode) error
	OpenFile(name string, flag int, perm os.FileMode) (File, error)
}

FileSystem interface used so we can mock during tests

Jump to

Keyboard shortcuts

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