New creates a new instance of the application.
(logger *slog.Logger, config Config, files fs.FS)
| 25 | |
| 26 | // New creates a new instance of the application. |
| 27 | func 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 |