package main import ( "context" "github.com/rs/zerolog/log" "github.com/TelegramExchange/tgex-parser/config" "github.com/TelegramExchange/tgex-parser/internal/app" "github.com/TelegramExchange/tgex-parser/pkg/logger" ) func main() { log.Info().Msg("parser starting") c, err := config.New() if err != nil { log.Fatal().Err(err).Msg("config.New") } logger.Init(c.Logger) log.Info().Msg("parser initialized") ctx := context.Background() if err := app.Run(ctx, c); err != nil { log.Error().Err(err).Msg("app.Run") } }