controllers

package
v0.0.0-...-3b0f2d1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2013 License: BSD-2-Clause, BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Router = pat.New()
	Base   *template.Template
)

Functions

func ServeJSON

func ServeJSON(w http.ResponseWriter, code int, d ContentData)

func ServeJSONError

func ServeJSONError(w http.ResponseWriter, code int, err error, d ContentData)

func WriteError

func WriteError(w http.ResponseWriter, code int, err error)

Types

type BaseData

type BaseData struct {
	Tabtitle string
	Title    string
	Subtitle string
	Content  template.HTML
}

type ContentData

type ContentData map[string]interface{}

Jump to

Keyboard shortcuts

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