rakyll / statik

Embed files into a Go executable
Apache License 2.0
3.75k stars 225 forks source link

Doc update, mentioning go's native embedding #124

Open amnonbc opened 2 years ago

amnonbc commented 2 years ago

This has been a very useful tool. But the introduction of //go:embed in Go 1.16 provides roughly the same functionality, but without requiring a go generate pre-compilation step.

It would be good to add a comment to the beginning of the readme, saying that it is best to use go's native embedding, and to mention any cases which are not handled by go:embed where statik would still be useful.

jcchavezs commented 2 years ago

Up for a PR?

man. 2. mai 2022, 09:00 skrev Amnon @.***>:

This has been a very useful tool. But the introduction of //go:embed in Go 1.16 provides roughly the same functionality, but without requiring a go generate pre-compilation step.

It would be good to add a comment to the beginning of the readme, saying that it is best to use go's native embedding, and to mention any cases which are not handled by go:embed where statik would still be useful.

— Reply to this email directly, view it on GitHub https://github.com/rakyll/statik/issues/124, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXOYATFLVMXVCDQBFPWANDVH54QFANCNFSM5U3EVWVQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>