0

Migrate to go project layout, replace logrus with slog, fix some errors

This commit is contained in:
eleksir
2025-10-20 01:21:26 +03:00
parent a7e7e35f11
commit e100b97ab5
47 changed files with 770 additions and 3713 deletions

View File

@@ -1,11 +1,8 @@
run:
tests: false
skip-dirs:
- data
- vendor
modules-download-mode: readonly
allow-parallel-runners: true
go: '1.22'
go: '1.25'
output:
sort-results: true
linters-settings:
@@ -14,6 +11,9 @@ linters-settings:
# Оно не используется для повышения безопасности или каких-то таких секъюрых вещей, оно используется для выборки
# произвольного элемента из массива, так что ИДИ НАХУЙ с этой проверкой и не еби мозги липовой безопасностью.
- G404 # Insecure random number source (rand)
issues.exclude-dirs:
- data
- vendor
linters:
disable-all: true
enable:
@@ -28,19 +28,18 @@ linters:
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- decorder
- durationcheck
- errchkjson
- errorlint
- exhaustive
- exhaustruct
- exportloopref
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gocritic
- godot
- goerr113
- err113
- gofmt
- goimports
- gosec