Documentation ¶
Index ¶
- Constants
- Variables
- func SkipWalker(walker Walker, skipPrefixes []string, wf WalkFunc) error
- type Addable
- type Box
- type File
- type Finder
- type HTTPBox
- type HTTPFile
- type Haser
- type LegacyBox
- type Lister
- type MemoryBox
- func (m *MemoryBox) AddBytes(path string, t []byte) error
- func (m *MemoryBox) AddString(path string, t string) error
- func (m *MemoryBox) Find(path string) (ret []byte, e error)
- func (m *MemoryBox) FindString(path string) (string, error)
- func (m *MemoryBox) Has(path string) bool
- func (m *MemoryBox) List() []string
- func (m *MemoryBox) Open(path string) (http.File, error)
- func (m *MemoryBox) Remove(path string)
- func (m *MemoryBox) Walk(wf WalkFunc) error
- func (m *MemoryBox) WalkPrefix(pre string, wf WalkFunc) error
- type SimpleFile
- type WalkFunc
- type Walkable
- type Walker
Constants ¶
View Source
const Version = "v0.0.1"
Version of packd
Variables ¶
View Source
var CommonSkipPrefixes = []string{".", "_", "node_modules", "vendor"}
Functions ¶
Types ¶
type Box ¶
Box represents the entirety of the necessary interfaces to form a "full" box. github.com/768bit/packr#Box is an example of this interface.
type LegacyBox ¶
type LegacyBox interface { String(name string) string MustString(name string) (string, error) Bytes(name string) []byte MustBytes(name string) ([]byte, error) }
LegacyBox represents deprecated methods that older Box implementations might have had. github.com/768bit/packr v1 is an example of a LegacyBox.
Click to show internal directories.
Click to hide internal directories.