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