github.com/shurcool/vfsgen (go): Package vfsgen takes an http.FileSystem (likely at `go generate` time) and generates Go code that statically implements the provided http.FileSystem.  Features:  -	Efficient generated code without unneccessary overhead.  -	Uses gzip compression internally (selectively, only for files that compress well).  -	Enables direct access to internal gzip compressed bytes via an optional interface.  -	Outputs `gofmt`ed Go code.  This code will generate an assets_vfsdata.go file with `var assets http.FileSystem = ...` that statically implements the contents of "assets" directory.  vfsgen is great to use with go generate directives. This code can go in an assets_gen.go file, which can then be invoked via "//go:generate go run assets_gen.go". The input virtual filesystem can read directly from disk, or it can be more involved.
Keywords: embed-files|go