feat: implement TorrentClaw Go API client v0.1.0
Some checks failed
CI / Test (push) Failing after 1s
CI / Test-1 (push) Failing after 1s
CI / Test-2 (push) Failing after 1s
CI / Lint (push) Failing after 1s
CI / Vet (push) Failing after 1s

This commit is contained in:
Deivid Soto 2026-03-28 11:28:48 +01:00
commit f6f24c2c3f
39 changed files with 5067 additions and 0 deletions

26
lefthook.yml Normal file
View file

@ -0,0 +1,26 @@
# Lefthook git hooks configuration
# Install: lefthook install (or make install-hooks)
# Docs: https://github.com/evilmartians/lefthook
pre-commit:
parallel: true
commands:
gofmt-check:
glob: "*.go"
run: test -z "$(gofmt -l .)" || { echo "Files not formatted:"; gofmt -l .; exit 1; }
go-vet:
glob: "*.go"
run: go vet ./...
golangci-lint:
glob: "*.go"
run: |
if command -v golangci-lint &> /dev/null; then
golangci-lint run ./...
else
echo "golangci-lint not installed, skipping (install: https://golangci-lint.run/welcome/install/)"
fi
commit-msg:
scripts:
validate.sh:
runner: bash