goembed is a static asset embedder to use with go generate
,
introduced in Go 1.4 (https://blog.golang.org/go1.4).
For more information about the goembed
command, see
http://godoc.org/github.com/jeanfric/goembed/cmd/goembed.
Assets generated by goembed
can be used directly with package
github.com/jeanfric/embedfs
, which provides an http.FileSystem
implementation backed by a map[string]string
.
For more information, see https://github.com/jeanfric/embedfs.