Initializes the prompt package by loading the templates from the embedded file system.
()
| 24 | |
| 25 | // Initializes the prompt package by loading the templates from the embedded file system. |
| 26 | func init() { //nolint:gochecknoinits // required to load embedded templates at startup |
| 27 | if err := util.LoadTemplates(templatesFS); err != nil { |
| 28 | log.Fatal(err) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // GetRawData returns the raw data of the template with the given name. |
| 33 | func GetRawData(name string) ([]byte, error) { |
nothing calls this directly
no test coverage detected