Codebase list golang-github-gobuffalo-packr / fc63daad-c442-4a9e-9933-9bb6e45f228c/main v2 / packr_test.go
fc63daad-c442-4a9e-9933-9bb6e45f228c/main

Tree @fc63daad-c442-4a9e-9933-9bb6e45f228c/main (Download .tar.gz)

packr_test.go @fc63daad-c442-4a9e-9933-9bb6e45f228c/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
}