resource

package
v0.0.0-...-646a310 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package resource provides some boilerplate code for serving static resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Name     string //name or extension, used for sniffing
	Value    string
	Modified time.Time //defaults to the time program was started
}

func (Resource) RouteHTTP

func (r Resource) RouteHTTP(_ *http.Request) route.Router

func (Resource) ServeHTTP

func (r Resource) ServeHTTP(w http.ResponseWriter, rq *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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