Codebase list golang-github-gobuffalo-packr / a42fe9d4-bce6-492f-bb31-2e807ba64b0e/main v2 / packr_test.go
a42fe9d4-bce6-492f-bb31-2e807ba64b0e/main

Tree @a42fe9d4-bce6-492f-bb31-2e807ba64b0e/main (Download .tar.gz)

packr_test.go @a42fe9d4-bce6-492f-bb31-2e807ba64b0e/mainraw · 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
}