Registry / utility / shurcool-vfsgen

shurcool-vfsgen

JSON →
library0.0.0-20230704071429-0000e147ea92gogounverified

Package vfsgen takes an http.FileSystem and generates Go code that statically implements the provided http.FileSystem.

go get github.com/shurcooL/vfsgen
INSTALL
IMPORT
SIG · SHURCOOL-VFSGEN
S
shurcool-vfsgen
utilitygov0.0.0-20230704071429-0000e147ea92
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

vfsgen
github.com/shurcooL/vfsgen

Generate Go code that embeds a static file system.

package main import ( "net/http" "github.com/shurcooL/vfsgen" ) func main() { var fs http.FileSystem = http.Dir("static") err := vfsgen.Generate(fs, vfsgen.Options{}) if err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230704071429-0000e147ea92latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
shurcool-vfsgen — go get shurcool-vfsgen · libregistry