apply linter
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Simon Vieille 2024-07-22 11:36:24 +02:00
commit d2ebea5a31
Signed by: deblan
GPG key ID: 579388D585F70417
4 changed files with 11 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
/expiration-check
/build
/test.sh

View file

@ -55,3 +55,9 @@ $(WINBIN):
.PHONY: clean
clean:
rm -rf $(DIR)/*
tool-gofumpt:
which golangci-lint > /dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
fmt: tool-gofumpt
gofumpt -w --extra .

View file

@ -32,6 +32,7 @@ func CheckCertificate(domain string) Domain {
Date: date.Format(time.DateTime),
}
}
return Domain{Name: domain, Failed: true}
}

View file

@ -1,11 +1,12 @@
package render
import (
"os"
"sort"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/jedib0t/go-pretty/v6/text"
"gitnet.fr/deblan/expiration-check/checker"
"os"
"sort"
)
func Render(values []checker.Domain, warning, danger float64) {