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

Function init

git/hook.go:29–33  ·  view source on GitHub ↗

init initializes the Git hook templates by loading them from embedded files. If there's an error loading the templates, the function logs a fatal error and terminates the program.

()

Source from the content-addressed store, hash-verified

27// init initializes the Git hook templates by loading them from embedded files.
28// If there's an error loading the templates, the function logs a fatal error and terminates the program.
29func init() { //nolint:gochecknoinits // required to load embedded templates at startup
30 if err := util.LoadTemplates(files); err != nil {
31 log.Fatal(err)
32 }
33}

Callers

nothing calls this directly

Calls 1

LoadTemplatesFunction · 0.92

Tested by

no test coverage detected