FreeBSD.software
Home/devel/statik

statik

0.1.2_37,1devel

Embed static files into a Go executable

statik allows you to embed a directory of static files into your Go binary to be later served from an http.FileSystem. Is this a crazy idea? No, not necessarily. If you're building a tool that has a Web component, you typically want to serve some images, CSS and JavaScript. You like the comfort of distributing a single binary, so you don't want to mess with deploying them elsewhere. If your static files are not large in size and will be browsed by a few people, statik is a solution you are looking for.

$pkg install statik
github.com/rakyll/statik
Origin
devel/statik
Size
1.91MiB
License
APACHE20
Maintainer
cheffo@freebsd-bg.org
Dependencies
0 packages
Required by
0 packages