Back to

Package file

Latest Go to latest

The latest major version is v2.

Published: Mar 8, 2020 | License: MIT | Module:


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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier