Codebase list golang-github-gobuffalo-packr / ad3984a9-3084-4ece-bcec-ee7e183297d2/upstream v2 / packr_test.go
ad3984a9-3084-4ece-bcec-ee7e183297d2/upstream

Tree @ad3984a9-3084-4ece-bcec-ee7e183297d2/upstream (Download .tar.gz)

packr_test.go @ad3984a9-3084-4ece-bcec-ee7e183297d2/upstreamraw · history · blame

package packr

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

func qfile(name string, body string) File {
	f, err := file.NewFile(name, []byte(body))
	if err != nil {
		panic(err)
	}
	return f
}