Embed a directory into a go package
go get dev.hexasoftware.com/stdio/folder2go folder2go /path generated
import ( "mypkg/generated" "fmt" ) func main() { fmt.Printf("%s",string(generated.Data["file.txt"] )) }