MCPcopy Index your code
hub / github.com/dreamsofcode-io/zenstats / main

Function main

main.go:18–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16var files embed.FS
17
18func main() {
19 godotenv.Load()
20
21 logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
22 ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
23 defer cancel()
24
25 app := app.New(logger, app.Config{}, files)
26
27 if err := app.Start(ctx); err != nil {
28 logger.Error("failed to start app", slog.Any("error", err))
29 }
30}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
StartMethod · 0.80

Tested by

no test coverage detected