Top 0.8% docker downloads on proxy.golang.org
proxy.golang.org : github.com/lunny/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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/lunny/vfsgen
License: MIT
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/lunny
Dependent repositories: 101
Stars: 0 on GitHub
Forks: 0 on GitHub
Docker dependents: 2
Docker downloads: 93,137
See more repository details: repos.ecosyste.ms
Last synced: 2 months ago