Codebase list golang-github-gobuffalo-packr / affa5f50-863f-4e3e-9c96-4f943238e3fb/main v2 / packr_test.go
affa5f50-863f-4e3e-9c96-4f943238e3fb/main

Tree @affa5f50-863f-4e3e-9c96-4f943238e3fb/main (Download .tar.gz)

packr_test.go @affa5f50-863f-4e3e-9c96-4f943238e3fb/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
}