1

Add login support, golangci-lint config

This commit is contained in:
2019-09-14 18:55:39 +04:00
parent afc2a73ed6
commit c1c969db2e
7 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// NNM-Club torrent filess mass downloader
// Created for Uploaders group
// Copyright (c) 2012-2019 Vladimir "fat0troll" Hodakov
package loginerv1
// checkConfig checks if there's some errors in config file
func checkConfig() {
if c.Config.URL == "" || c.Config.Password == "" || c.Config.Username == "" {
dlog.Fatal().Msg("Конфиг не заполнен или заполнен не до конца. Запустите программу с ключом -auth для авторизации.")
}
}