Versions in this module Expand all Collapse all v2 v2.1.1 Dec 19, 2019 v2.1.0 Dec 19, 2019 Changes in this version + const Version + var ErrResOutsideBox = errors.New("can't find a resource outside the box") + func PackBytes(box string, name string, bb []byte) + func PackBytesGzip(box string, name string, bb []byte) error + func PackJSONBytes(box string, name string, jbb string) error + type Box struct + DefaultResolver resolver.Resolver + Name string + Path string + ResolutionDir string + func New(name string, path string) *Box + func NewBox(path string) *Box + func (b *Box) AddBytes(path string, t []byte) error + func (b *Box) AddString(path string, t string) error + func (b *Box) Resolve(key string) (file.File, error) + func (b *Box) SetResolver(file string, res resolver.Resolver) + func (b *Box) Walk(wf WalkFunc) error + func (b Box) Bytes(name string) []byte + func (b Box) Find(name string) ([]byte, error) + func (b Box) FindString(name string) (string, error) + func (b Box) Has(name string) bool + func (b Box) List() []string + func (b Box) MustBytes(name string) ([]byte, error) + func (b Box) MustString(name string) (string, error) + func (b Box) Open(name string) (http.File, error) + func (b Box) String(name string) string + func (b Box) WalkPrefix(prefix string, wf WalkFunc) error + type File = file.File + type Pointer struct + ForwardBox string + ForwardPath string + func (p Pointer) Resolve(box string, path string) (file.File, error) + type WalkFunc = packd.WalkFunc Other modules containing this package github.com/768bit/packr