MCPcopy Create free account
hub / github.com/appleboy/CodeGPT / init

Function init

prompt/prompt.go:26–30  ·  view source on GitHub ↗

Initializes the prompt package by loading the templates from the embedded file system.

()

Source from the content-addressed store, hash-verified

24
25// Initializes the prompt package by loading the templates from the embedded file system.
26func 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.
33func GetRawData(name string) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

LoadTemplatesFunction · 0.92

Tested by

no test coverage detected