Documentation ¶
Index ¶
- func AddGolangHelpers(t *template.Template) *template.Template
- func Helper_add(lhs, rhs int) int
- func Helper_and(lhs, rhs interface{}) interface{}
- func Helper_builtin(str string) interface{}
- func Helper_camel(value string) string
- func Helper_camelT(value string) string
- func Helper_concat(ss ...string) string
- func Helper_concat2(s1, s2 string) string
- func Helper_concat3(s1, s2, s3 string) string
- func Helper_concat4(s1, s2, s3, s4 string) string
- func Helper_concat5(s1, s2, s3, s4, s5 string) string
- func Helper_contains(str, srch string) string
- func Helper_dict(values ...interface{}) (map[string]interface{}, error)
- func Helper_dref(path string, data interface{}) interface{}
- func Helper_eq(lhs, rhs string) interface{}
- func Helper_file(filename string) string
- func Helper_getbetween(str, lhs, rhs string) string
- func Helper_getprefix(str, suf string) string
- func Helper_getsuffix(str, suf string) string
- func Helper_gokind(input interface{}) string
- func Helper_hasprefix(str, pre string) string
- func Helper_hassuffix(str, suf string) string
- func Helper_identity(thing interface{}) interface{}
- func Helper_inc(val int) int
- func Helper_indent(value, indent string) string
- func Helper_int_eq(lhs, rhs int) interface{}
- func Helper_int_gt(lhs, rhs int) interface{}
- func Helper_int_gte(lhs, rhs int) interface{}
- func Helper_int_lt(lhs, rhs int) interface{}
- func Helper_int_lte(lhs, rhs int) interface{}
- func Helper_int_ne(lhs, rhs int) interface{}
- func Helper_join(sep string, ss ...string) string
- func Helper_join2(sep, s1, s2 string) string
- func Helper_join3(sep, s1, s2, s3 string) string
- func Helper_join4(sep, s1, s2, s3, s4 string) string
- func Helper_join5(sep, s1, s2, s3, s4, s5 string) string
- func Helper_json(value interface{}) string
- func Helper_jsoninline(value interface{}) string
- func Helper_kebab(value string) string
- func Helper_kebabU(value string) string
- func Helper_length(list interface{}) interface{}
- func Helper_listelem(list interface{}, index int) interface{}
- func Helper_lower(value string) string
- func Helper_lwidth(width string, value string) string
- func Helper_ne(lhs, rhs string) interface{}
- func Helper_or(lhs, rhs interface{}) interface{}
- func Helper_pascal(value string) string
- func Helper_pretty(value interface{}) string
- func Helper_printf(fmt_str string, args ...interface{}) string
- func Helper_printf1(fmt_str string, arg interface{}) string
- func Helper_replace(str, old, new string, cnt int) string
- func Helper_reverse(list interface{}) interface{}
- func Helper_rsublist(list interface{}, start, count int) interface{}
- func Helper_rwidth(width string, value string) string
- func Helper_snake(value string) string
- func Helper_snakeU(value string) string
- func Helper_split(str, sep string) []string
- func Helper_string(str string) string
- func Helper_sublist(list interface{}, start, count int) interface{}
- func Helper_substr(str string, start, end int) string
- func Helper_ternary(first, second interface{}) interface{}
- func Helper_thelist(thing interface{}) interface{}
- func Helper_title(value string) string
- func Helper_toml(value interface{}) string
- func Helper_trimfrom_first(str, pre string, keep bool) string
- func Helper_trimfrom_last(str, pre string, keep bool) string
- func Helper_trimprefix(str, pre string) string
- func Helper_trimspace(str string) string
- func Helper_trimsuffix(str, suf string) string
- func Helper_trimto_first(str, pre string, keep bool) string
- func Helper_trimto_last(str, pre string, keep bool) string
- func Helper_upper(value string) string
- func Helper_xml(value interface{}) string
- func Helper_yaml(value interface{}) string
- type Delims
- type Template
- type TemplateMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGolangHelpers ¶ added in v0.3.0
func Helper_add ¶
func Helper_and ¶
func Helper_and(lhs, rhs interface{}) interface{}
func Helper_builtin ¶
func Helper_builtin(str string) interface{}
func Helper_camel ¶
func Helper_camelT ¶
func Helper_concat ¶ added in v0.6.1
func Helper_concat2 ¶
func Helper_concat3 ¶
func Helper_concat4 ¶
func Helper_concat5 ¶
func Helper_contains ¶
func Helper_dict ¶ added in v0.6.3
func Helper_dref ¶ added in v0.2.8
func Helper_dref(path string, data interface{}) interface{}
func Helper_file ¶ added in v0.2.8
func Helper_getbetween ¶
func Helper_getprefix ¶
func Helper_getsuffix ¶
func Helper_gokind ¶
func Helper_gokind(input interface{}) string
func Helper_hasprefix ¶
func Helper_hassuffix ¶
func Helper_identity ¶
func Helper_identity(thing interface{}) interface{}
func Helper_inc ¶
func Helper_indent ¶
func Helper_int_eq ¶
func Helper_int_eq(lhs, rhs int) interface{}
func Helper_int_gt ¶
func Helper_int_gt(lhs, rhs int) interface{}
func Helper_int_gte ¶
func Helper_int_gte(lhs, rhs int) interface{}
func Helper_int_lt ¶
func Helper_int_lt(lhs, rhs int) interface{}
func Helper_int_lte ¶
func Helper_int_lte(lhs, rhs int) interface{}
func Helper_int_ne ¶
func Helper_int_ne(lhs, rhs int) interface{}
func Helper_join ¶ added in v0.6.1
TODO, XXX: should this wrap stings.Join
func Helper_join2 ¶
func Helper_join3 ¶
func Helper_join4 ¶
func Helper_join5 ¶
func Helper_json ¶
func Helper_json(value interface{}) string
func Helper_jsoninline ¶ added in v0.3.2
func Helper_jsoninline(value interface{}) string
func Helper_kebab ¶
func Helper_kebabU ¶
func Helper_length ¶
func Helper_length(list interface{}) interface{}
func Helper_listelem ¶
func Helper_listelem(list interface{}, index int) interface{}
func Helper_lower ¶
func Helper_lwidth ¶
func Helper_pascal ¶ added in v0.6.3
func Helper_pretty ¶
func Helper_pretty(value interface{}) string
func Helper_printf ¶
func Helper_printf1 ¶
func Helper_replace ¶
func Helper_reverse ¶
func Helper_reverse(list interface{}) interface{}
func Helper_rsublist ¶
func Helper_rsublist(list interface{}, start, count int) interface{}
func Helper_rwidth ¶
func Helper_snake ¶
func Helper_snakeU ¶
func Helper_split ¶
func Helper_string ¶
func Helper_sublist ¶
func Helper_sublist(list interface{}, start, count int) interface{}
func Helper_substr ¶
func Helper_ternary ¶
func Helper_ternary(first, second interface{}) interface{}
func Helper_thelist ¶
func Helper_thelist(thing interface{}) interface{}
func Helper_title ¶
func Helper_toml ¶
func Helper_toml(value interface{}) string
func Helper_trimfrom_first ¶
func Helper_trimfrom_last ¶
func Helper_trimprefix ¶
func Helper_trimspace ¶ added in v0.6.3
func Helper_trimsuffix ¶
func Helper_trimto_first ¶
func Helper_trimto_last ¶
func Helper_upper ¶
func Helper_xml ¶
func Helper_xml(value interface{}) string
func Helper_yaml ¶
func Helper_yaml(value interface{}) string
Types ¶
type Template ¶
type Template struct { // Original inputs Name string Source string Delims *Delims // golang T *template.Template }
func CreateFromString ¶ added in v0.2.9
Creates a hof Template struct, initializing the correct template system. The system will be inferred if left empty
func NewTemplate ¶
func NewTemplate() *Template
type TemplateMap ¶
func CreateTemplateMapFromFolder ¶
func CreateTemplateMapFromFolder(glob, prefix string, delims *Delims) (tplMap TemplateMap, err error)
func NewTemplateMap ¶
func NewTemplateMap() TemplateMap
func (TemplateMap) ImportFromFolder ¶
func (M TemplateMap) ImportFromFolder(glob, prefix string, delims *Delims) error
func (TemplateMap) ImportTemplateFile ¶
func (M TemplateMap) ImportTemplateFile(filename string, delims *Delims) error
Click to show internal directories.
Click to hide internal directories.