Documentation
¶
Index ¶
Constants ¶
View Source
const HostTemplate = `` /* 741-byte string literal not displayed */
Variables ¶
View Source
var FuncMap = map[string]interface{}{ "contains": strings.Contains, "duration": func(t1, t2 time.Time) (s string) { sec := uint64(t2.Sub(t1).Seconds()) if sec > 3600 { s += fmt.Sprintf("%dh", sec/3600) sec = sec % 3600 } if sec > 60 { s += fmt.Sprintf("%dm", sec/60) sec = sec % 60 } s += fmt.Sprintf("%ds", sec) return s }, "join": strings.Join, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.