Top 2.5% dependent packages on proxy.golang.org
Top 1.8% dependent repos on proxy.golang.org
Top 2.8% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/shurcool/vfsgen
Keywords:
embed-files
, go
License: MIT
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/shurcool
Dependent packages: 5
Dependent repositories: 8
Stars: 966 on GitHub
Forks: 84 on GitHub
Docker dependents: 10
Docker downloads: 103,789,280
See more repository details: repos.ecosyste.ms
Last synced: about 3 hours ago