package file

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

Index

Types

type File

type File = packd.File

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

func NewDir

func NewDir(name string) (File, error)

NewDir returns a virtual dir implementation

func NewFile

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

NewFile returns a virtual File implementation

func NewFileR

func NewFileR(name string, r io.Reader) (File, error)

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

Directories

PathSynopsis
file/resolver
file/resolver/encoding
file/resolver/encoding/hexPackage hex implements hexadecimal encoding and decoding.
Version
v2.8.3 (latest)
Published
Nov 23, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.