common

package
v0.0.0-...-d969d09 Latest Latest
Warning

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

Go to latest
Published: May 23, 2015 License: MIT Imports: 11 Imported by: 4

Documentation

Overview

Note: inspiration for this from https://gist.github.com/cespare/3985516

Index

Constants

This section is empty.

Variables

View Source
var AppDir string
View Source
var DB *sql.DB
View Source
var LayoutPath string
View Source
var Templates *template.Template

Functions

func CheckError

func CheckError(err error, level int)

0 = info 1 = warning 2 = error - should be most common 3 = fatal

func LogAccess

func LogAccess(w http.ResponseWriter, req *http.Request, duration time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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