Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "noescape": func(s string) template.HTML { return template.HTML(s) }, "formatTime": func(t time.Time, layout string) string { return t.Format(layout) }, "tagStyle": func(count int) string { var size string if count >= 11 { size = "60px" } else if count == 10 { size = "55px" } else if count == 9 { size = "50px" } else if count == 8 { size = "45px" } else if count == 7 { size = "40px" } else if count == 6 { size = "35px" } else if count == 5 { size = "30px" } else if count == 4 { size = "25px" } else if count == 3 { size = "20px" } else if count == 2 { size = "15px" } else { size = "12px" } return fmt.Sprintf("font-size:%s", size) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.