Documentation ¶
Index ¶
- Constants
- Variables
- func AutoLink(html string, names []string) string
- func Datenow(format string) string
- func DiffLineTypeToStr(diffType int) string
- func DiffTypeToStr(diffType int) string
- func EncodeSha1(str string) string
- func EscapeHTML(text string) string
- func ExtractAutoLink(html string) (names []string)
- func List(l *list.List) chan interface{}
- func MarkdownHTML(markdown string) string
- func Nl2br(in string) string
- func Plus(a, b int) int
- func Reverse(in interface{}) (list []interface{})
- func SafeHTML(text string) template.HTML
- func SanitizeHTML(text string) string
- func Shuffle(in interface{}) (list []interface{})
- func Slice(in interface{}, from, to int) (list []interface{})
- func SplitFoldl(s, sep string) string
- func SplitFoldr(s, sep string) string
- func TimeSince(t time.Time) template.HTML
- func ToAge(bd time.Time) int
- func ToCanonical(name string) string
- func ToDay(t time.Time) int
- func ToMonth(t time.Time) time.Month
- func ToUnix(t time.Time) int64
- func ToYear(t time.Time) int
- func Truncate(in string, length int) string
- type Img
Constants ¶
Variables ¶
View Source
var HelperFuncs []template.FuncMap
Functions ¶
func DiffLineTypeToStr ¶
func DiffTypeToStr ¶
func EncodeSha1 ¶
func EscapeHTML ¶
func ExtractAutoLink ¶
func MarkdownHTML ¶
func SanitizeHTML ¶
func SplitFoldl ¶
func SplitFoldr ¶
func ToCanonical ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.