Luis Figueiredo f3778a6902 Improved readme | 7 years ago | |
---|---|---|
README.md | 7 years ago | |
main.go | 7 years ago |
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"] ))
}