static

package module
v0.0.0-...-795083e Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址