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 ¶
NewDir returns a virtual dir implementation
func NewFile ¶
NewFile returns a virtual File implementation
type FileMappable ¶
FileMappable types are capable of returning a map of path => File
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
file/resolver | |
file/resolver/encoding | |
file/resolver/encoding/hex | Package 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.