embedding package. Assets are embedded in a single go file that is
generated. The tree structure and relevant file attributes of the assets is
preserved, i.e. it's basically a very simple in-memory file system.
Additionally, the generated asset tree also implements http.FileSystem so
using it in a web service is trivial (using http.FileServer). Embedding
assets in this way isn't really ideal (the generated go file can take long
to compile compared to normal go files). It's therefore mostly useful for
embedding only a small amount of assets in small projects (i.e. think of
few MB max).
See also http://godoc.org/github.com/jessevdk/go-assets for the
documentation and https://github.com/jessevdk/go-assets-builder for a
simple program making the Generator of the library available as a command
line application.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.