funcmaps

package
v0.0.0-...-db2d94d Latest Latest
Warning

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

Go to latest
Published: May 2, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Minute = 60
	Hour   = 60 * Minute
	Day    = 24 * Hour
	Week   = 7 * Day
	Month  = 30 * Day
	Year   = 12 * Month
)

Variables

View Source
var HelperFuncs []template.FuncMap

Functions

func DiffLineTypeToStr

func DiffLineTypeToStr(diffType int) string

func DiffTypeToStr

func DiffTypeToStr(diffType int) string

func EncodeSha1

func EncodeSha1(str string) string

func EscapeHTML

func EscapeHTML(in string) string

func List

func List(l *list.List) chan interface{}

func Nl2br

func Nl2br(in string) string

func SafeHTML

func SafeHTML(text string) template.HTML

func TimeSince

func TimeSince(t time.Time) template.HTML

func ToAge

func ToAge(bd time.Time) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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