парсер

This commit is contained in:
Artem Tsyrulnikov
2026-01-06 21:04:42 +03:00
parent b77e4fd0b6
commit 2c0ae2dfc3
45 changed files with 2202 additions and 51 deletions

29
tg_parser/main.go Normal file
View File

@@ -0,0 +1,29 @@
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")
}
}