GetEmbeddedTemplate returns embedded template by name.
(templateName string)
| 109 | |
| 110 | // GetEmbeddedTemplate returns embedded template by name. |
| 111 | func GetEmbeddedTemplate(templateName string) (string, error) { |
| 112 | b, err := embedded.ReadFile(templateName) |
| 113 | if err != nil { |
| 114 | return "", errors.Wrap(err, "unable to read embedded template") |
| 115 | } |
| 116 | |
| 117 | return string(b), nil |
| 118 | } |
| 119 | |
| 120 | // SupportedTemplates returns a list of supported template names. |
| 121 | func SupportedTemplates() []string { |
no outgoing calls