Добавил каркас приложения

This commit is contained in:
2026-06-14 11:17:01 +03:00
parent a48f39d7f0
commit ed4b4fb15e
25 changed files with 824 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
# https://lefthook.dev/configuration/
pre-commit:
jobs:
- name: "gofmt"
glob: "*.go"
run: "gofmt -w {staged_files}"
stage_fixed: true
- name: "go vet"
glob: "*.go"
run: "go vet ./..."
- name: "golangci-lint"
glob: "*.go"
run: "golangci-lint run"
- name: "go test"
glob: "*.go"
run: "go test ./..."
- name: "gitleaks"
run: "gitleaks git --staged"