Initial commit
All checks were successful
release / release (push) Successful in 5m47s

This commit is contained in:
2025-05-01 00:46:24 +08:00
commit d15d4f47b6
22 changed files with 1556 additions and 0 deletions

38
app/app.go Normal file
View File

@@ -0,0 +1,38 @@
/*
* Copyright (c) 2025, Антон Аксенов
* This file is part of iptvc project
* MIT License: https://git.axenov.dev/IPTV/iptvc/src/branch/master/LICENSE
*/
package app
import (
"axenov/iptv-checker/app/config"
"github.com/redis/go-redis/v9"
)
const VERSION = "0.1.0"
// Arguments описывает аргументы командной строки
type Arguments struct {
IniPath string
TagsPath string
RandomCount uint
NeedJson bool
NeedQuiet bool
Verbose bool
}
var (
Args Arguments
Redis *redis.Client
Config *config.Config
//TagBlocks []tagfile.TagBlock
)
// Init инициализирует глобальные переменные
func Init() {
Config = config.Init()
//logger.Init(Args.NeedQuiet)
//Redis = cache.Init(Config.Redis)
}