|
|
il y a 8 ans | |
|---|---|---|
| README.md | il y a 8 ans | |
| main.go | il y a 8 ans |
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"] ))
}