filesystem

package
v0.0.0-...-1a8a335 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Apache-2.0 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 {
	Close() error
	Readdir(int) ([]os.FileInfo, error)
}

File interface

type Filesystem

type Filesystem interface {
	// from "os"
	Mkdir(name string, perm os.FileMode) error
	Open(name string) (File, error)
	Stat(name string) (os.FileInfo, error)

	// from "io/ioutil"
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

Filesystem interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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