Merge pull request #54 from edoardottt/devel

Devel
This commit is contained in:
vrenzolaverace
2022-05-03 16:04:03 +02:00
committed by GitHub
3 changed files with 13 additions and 1 deletions
+3
View File
@@ -18,6 +18,9 @@ update:
@make linux
@echo "Done."
lint:
@golangci-lint run
linux:
@go build -o ./cariddi
@sudo mv ./cariddi /usr/bin/
+1 -1
View File
@@ -364,7 +364,7 @@ func CreateColly(delayTime int, concurrency int, cache bool, timeout int,
c := colly.NewCollector(
colly.Async(true),
)
c.IgnoreRobotsTxt = false
c.IgnoreRobotsTxt = true
c.AllowURLRevisit = false
err := c.Limit(
+9
View File
@@ -22,6 +22,11 @@ IF "%ARG%"=="fmt" (
GOTO Done
)
IF "%ARG%"=="lint" (
CALL :Lint
GOTO Done
)
IF "%ARG%"=="remod" (
del go.mod
del go.sum
@@ -52,6 +57,10 @@ go fmt ./...
echo Done.
EXIT /B 0
:Lint
golangci-lint run
EXIT /B 0
:Update
set GO111MODULE=on
echo Updating ...