MCPcopy Create free account
hub / github.com/dreamsofcode-io/zenstats / New

Function New

internal/app/app.go:27–34  ·  view source on GitHub ↗

New creates a new instance of the application.

(logger *slog.Logger, config Config, files fs.FS)

Source from the content-addressed store, hash-verified

25
26// New creates a new instance of the application.
27func New(logger *slog.Logger, config Config, files fs.FS) *App {
28 return &App{
29 config: config,
30 logger: logger,
31 files: files,
32 quotes: quote.New(),
33 }
34}
35
36// Start is used to start the application. The application
37// will run until either the given context is cancelled, or

Callers 1

mainFunction · 0.92

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected