func (b Box) MustBytes(name string) ([]byte, error) {
	return b.Find(name)
}
Deprecated: Use Find instead.
package packr
import (
	"bytes"
	"compress/gzip"
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"path"
	"path/filepath"
	"runtime"
	"strings"
	"github.com/gobuffalo/packd"
)
var (
	ErrResOutsideBox = fmt.Errorf("Can't find a resource outside the box")
)
var _ packd.Box = Box{}
var _ packd.HTTPBox = Box{}
var _ packd.Lister = Box{}
var _ packd.Addable = Box{}
var _ packd.Walkable = Box{}
var _ packd.Finder = Box{}
var _ packd.LegacyBox = Box{}
func NewBox(path string) Box {
	var cd string
	if !filepath.IsAbs(path) {
		_, filename, _, _ := runtime.Caller(1)
		cd = filepath.Dir(filename)
	}
	cov := filepath.Join("_test", "_obj_test")
	cd = strings.Replace(cd, string(filepath.Separator)+cov, "", 1)
	if !filepath.IsAbs(cd) && cd != "" {
		cd = filepath.Join(GoPath(), "src", cd)
	}
	return Box{
		Path:       path,
		callingDir: cd,
		data:       map[string][]byte{},
	}
}
type Box struct {
	Path        string
	callingDir  string
	data        map[string][]byte
	directories map[string]bool
}
func (b Box) AddString(path string, t string) error {
	b.AddBytes(path, []byte(t))
	return nil
}
func (b Box) AddBytes(path string, t []byte) error {
	b.data[path] = t
	return nil
}
func (b Box) String(name string) string {
	bb, _ := b.FindString(name)
	return bb
}
func (b Box) MustString(name string) (string, error) {
	return b.FindString(name)
}
func (b Box) Bytes(name string) []byte {
	bb, _ := b.Find(name)
	return bb
}