fs

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct{}

func (*FS) Abs

func (f *FS) Abs(path string) (string, error)

func (*FS) MakeDirAll

func (f *FS) MakeDirAll(path string) error

func (*FS) OpenFile

func (f *FS) OpenFile(path string) (ReadResetWriteCloser, int64, error)

func (*FS) ReadFile

func (f *FS) ReadFile(path string) (io.ReadCloser, int64, error)

func (*FS) Watch added in v0.13.0

func (f *FS) Watch(dir string, wait time.Duration) (change <-chan time.Time, done chan<- struct{}, err error)

TODO: replace done chan with done func

func (*FS) WriteFile

func (f *FS) WriteFile(path string) (io.WriteCloser, error)

type ReadResetWriteCloser

type ReadResetWriteCloser interface {
	io.ReadWriteCloser
	Reset() error
}

Jump to

Keyboard shortcuts

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