package file

import "github.com/gobuffalo/packr/v2/file"

Index

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

Source Files

file.go info.go virtual.go

Directories

PathSynopsis
file/resolver
file/resolver/encoding
file/resolver/encoding/hexPackage hex implements hexadecimal encoding and decoding.
Version
v2.0.0-beta.1
Published
Oct 26, 2018
Platform
js/wasm
Imports
5 packages
Last checked
10 hours ago

Tools for package owners.