Documentation
¶
Index ¶
- func All(t *template.Template) template.FuncMap
- func First(list interface{}) (interface{}, error)
- func GenerateIncludeFn(t *template.Template) func(string, interface{}) (string, error)
- func Indent(t int, content string) string
- func IndentSpace(t int, content string) string
- func Last(list interface{}) (interface{}, error)
- func Newline(c ...int) string
- func Now() string
- func PadLeft(n int, s string) string
- func PadRight(n int, s string) string
- func Rep(n int, s ...string) string
- func Rest(list interface{}) (interface{}, error)
- func Space(n int) string
- func Tab(n int) string
- func UppercaseFirst(s string) string
- func WhenEmpty(d, s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIncludeFn ¶
GenerateIncludeFn creates a function to be used as an "include" function in templates
func Indent ¶
Indent prints the given string with the given number of tabs prepended before each line
func IndentSpace ¶
IndentSpace prints the given string with the given number of spaces prepended before each line
func UppercaseFirst ¶
UppercaseFirst converts the first character in a string to uppercase
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.