Parse creates a new anonymous template with the basic functions and parses the given format.
(format string)
| 63 | // Parse creates a new anonymous template with the basic functions |
| 64 | // and parses the given format. |
| 65 | func Parse(format string) (*template.Template, error) { |
| 66 | return template.New("").Funcs(basicFunctions).Parse(format) |
| 67 | } |
| 68 | |
| 69 | // New creates a new empty template with the provided tag and built-in |
| 70 | // template functions. |
no outgoing calls
searching dependent graphs…