static

package module
v0.0.0-...-bfc2be5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2016 License: MIT Imports: 5 Imported by: 1

README

static

Package static is a handler for the core.
It serves files from the static directory, wth the /static URL path prefix.

GoDoc

Documentation

Overview

Package static is a handler for the core (https://godoc.org/github.com/volatile/core). It serves files from the "static" directory, wth the "/static" URL path prefix.

Usage

Use adds the handler to the default handlers stack:

static.Use(static.DefaultMaxAge)

Index

Constants

View Source
const (
	// DefaultMaxAge provides a default caching value of 1 hour.
	DefaultMaxAge = 1 * time.Hour
)

Variables

This section is empty.

Functions

func Use

func Use(maxAge time.Duration)

Use adds the handler to the default handlers stack. Argument maxAge is expressed in seconds and applies to all content (in a production environment only).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL