Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = map[string]interface{}{ "camel": kace.Camel, "compare": strings.Compare, "contains": strings.Contains, "containsAny": strings.ContainsAny, "count": strings.Count, "dec": dec, "equalFold": strings.EqualFold, "fields": strings.Fields, "hasPrefix": strings.HasPrefix, "hasSuffix": strings.HasPrefix, "inc": inc, "strIndex": strings.Index, "indexAny": strings.IndexAny, "join": strings.Join, "kebab": kace.Kebab, "kebabUpper": kace.KebabUpper, "lastIndex": strings.LastIndex, "lastIndexAny": strings.LastIndexAny, "makeMap": makeMap, "makeSlice": makeSlice, "numbers": numbers, "pascal": kace.Pascal, "repeat": strings.Repeat, "replace": strings.Replace, "sliceString": sliceString, "snake": kace.Snake, "snakeUpper": kace.SnakeUpper, "split": strings.Split, "splitAfter": strings.SplitAfter, "splitAfterN": strings.SplitAfterN, "splitN": strings.SplitN, "sub": sub, "sum": sum, "title": strings.Title, "toLower": strings.ToLower, "toTitle": strings.ToTitle, "toUpper": strings.ToUpper, "trim": strings.Trim, "trimLeft": strings.TrimLeft, "trimPrefix": strings.TrimPrefix, "trimRight": strings.TrimRight, "trimSpace": strings.TrimSpace, "trimSuffix": strings.TrimSuffix, }
FuncMap is the default list of functions available to templates. If you add methods here, please keep them alphabetical.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.