package main import "log" import "github.com/gobuffalo/packr" var packrBox packr.Box func main() { log.Println("packr ./resources box") // This puts all the files in that directory in the binary // This directory includes the default config file if there is not already one packrBox = packr.NewBox("./resources") filename := "root-anchors.xml" b, _ := packrBox.FindString(filename) log.Println(filename, "=\n\n", b) }