Registry / utility / rakyll-statik

rakyll-statik

JSON →
library0.1.8gogounverified

Embeds static files into a Go binary by generating code that registers directory contents as zip data.

go get github.com/rakyll/statik
INSTALL
IMPORT
SIG · RAKYLL-STATIK
R
rakyll-statik
utilitygov0.1.8
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.

statik
github.com/rakyll/statik

Serves embedded static files via HTTP.

package main import ( "net/http" "github.com/rakyll/statik/fs" _ "github.com/rakyll/statik/example/statik" ) func main() { statikFS, _ := fs.New() http.Handle("/", http.FileServer(statikFS)) http.ListenAndServe(":8080", nil) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rakyll-statik — go get rakyll-statik · libregistry