Registry / utility / httpfs

httpfs

JSON →
library1.0.6gogounverified

Package httpfs implements http.FileSystem on top of a map[string]string.

go get modernc.org/httpfs
INSTALL
IMPORT
SIG · HTTPFS
H
httpfs
utilitygov1.0.6
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.

httpfs
modernc.org/httpfs

Serve files from a map using http.FileSystem

package main import ( "net/http" "modernc.org/httpfs" ) func main() { fs := httpfs.New(map[string]string{"/hello": "Hello, World!"}) http.Handle("/", http.FileServer(fs)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
httpfs — go get httpfs · libregistry