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: 4 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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