1 2 3 4 5 6 7 8 9 10 11
package resolver import "github.com/gobuffalo/packr/v2/file" func qfile(name string, body string) file.File { f, err := file.NewFile(name, []byte(body)) if err != nil { panic(err) } return f }