README ¶ static static file serving module for NovaKit Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Handler(opts ...Options) nova.HandlerFunc type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Handler ¶ func Handler(opts ...Options) nova.HandlerFunc Handler create a nova.HandlerFunc Types ¶ type Options ¶ type Options struct { // Prefix path prefix of url Prefix string // Directory directory to serve, will use WEBROOT envvar Directory string // BinFS using binfs, not suggested with WEBROOT envvar BinFS bool // Index serving index.html Index bool } Options options for static Source Files ¶ View all Source files static.go Click to show internal directories. Click to hide internal directories.