file

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2018 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	Name() string
	io.ReadCloser
	io.Writer
	FileInfo() (os.FileInfo, error)
	Readdir(count int) ([]os.FileInfo, error)
	Seek(offset int64, whence int) (int64, error)
	Stat() (os.FileInfo, error)
}

File represents a virtual, or physical, backing of a file object in a Box

func NewDir

func NewDir(name string) File

NewDir returns a virtual dir implementation

func NewFile

func NewFile(name string, b []byte) File

NewFile returns a virtual File implementation

type FileMappable

type FileMappable interface {
	FileMap() map[string]File
}

FileMappable types are capable of returning a map of path => File

Directories

Path Synopsis
encoding/hex
Package hex implements hexadecimal encoding and decoding.
Package hex implements hexadecimal encoding and decoding.

Jump to

Keyboard shortcuts

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