Package Usage: go: github.com/shurcooL/vfsgen
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.
8 versions
Latest release: almost 2 years ago
1,174 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/shurcooL/vfsgen