Documentation
¶
Index ¶
- Variables
- func Int2Str(i interface{}) string
- func ParseHtml(str string) template.HTML
- func RangeInt(start, end int) []int
- func Str2Int(str string) int
- func Struct2Map(v interface{}) map[string]interface{}
- func URL(route string, params ...interface{}) string
- func Widget(name string, data ...interface{}) template.HTML
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "date": php.Date, "strstr": php.Strstr, "substr": php.Substr, "mb_substr": php.Mb_substr, "strlen": php.Strlen, "mb_strlen": php.Mb_strlen, "strrev": php.Strrev, "str_replace": php.Str_replace, "url": URL, "range_int": RangeInt, "trim": php.Trim, "parseHtml": ParseHtml, }
传给模板的函数
Functions ¶
func Int2Str ¶
func Int2Str(i interface{}) string
int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float32 float64转字符串
func Struct2Map ¶
func Struct2Map(v interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.