BSD Ports

devel/statik 0.1.2_24,1 DragonFly

Embed static files into a Go executable

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel
Package size
591.7 KiB, 1602.5 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/statik0.1.2_24,1
FreeBSDdevel/statik0.1.2_47,1
HardenedBSDdevel/statik0.1.2_45,1
GhostBSDdevel/statik0.1.2_45,1

Install

Binary package:

pkg install statik

From DPorts:

cd /usr/dports/devel/statik && make install clean

Dependencies

No port depends on this one.