first commit

This commit is contained in:
2025-10-11 19:53:28 +04:00
commit 0d53670ab7
18 changed files with 2413 additions and 0 deletions

41
Taskfile.yaml Normal file
View File

@@ -0,0 +1,41 @@
# https://taskfile.dev
version: "3"
vars:
BIN_DIR: ./bin
GOLANGCI_LINT_VERSION: v2.5.0
tasks:
ftl:
cmds:
- task: fmt
- task: tidy
- task: lint
tidy: go mod tidy {{.CLI_ARGS}}
test: go test ./... {{.CLI_ARGS}}
fmt:
desc: Run linters
deps:
- install-golangci-lint
cmds:
- "{{.BIN_DIR}}/golangci-lint-{{.GOLANGCI_LINT_VERSION}} fmt"
lint:
desc: Run linters
deps:
- install-golangci-lint
cmds:
- "{{.BIN_DIR}}/golangci-lint-{{.GOLANGCI_LINT_VERSION}} run"
install-golangci-lint:
desc: Install golangci-lint
status:
- test -f {{.BIN_DIR}}/golangci-lint-{{.GOLANGCI_LINT_VERSION}}
cmds:
- mkdir -p {{.BIN_DIR}}
- rm -f {{.BIN_DIR}}/golangci-lint-{{.GOLANGCI_LINT_VERSION}}
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b {{.BIN_DIR}} {{.GOLANGCI_LINT_VERSION}}
- mv {{.BIN_DIR}}/golangci-lint {{.BIN_DIR}}/golangci-lint-{{.GOLANGCI_LINT_VERSION}}