From a0006dc3a3ba89c4d2f884d06e9ce6afd6bc4230 Mon Sep 17 00:00:00 2001 From: na4ma4 Date: Mon, 22 Apr 2024 19:16:05 +1000 Subject: [PATCH] fixed linter warnings --- .golangci.yml | 4 ++++ traefik/domain.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 0f5329f..08c45c7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -124,7 +124,11 @@ linters-settings: - os.WriteFile - prometheus.ExponentialBuckets.* - prometheus.LinearBuckets + - tabwriter.NewWriter - cobra.MinimumNArgs + - cobra.MaximumNArgs + - cobra.ExactArgs + - cobra.RangeArgs gomoddirectives: replace-allow-list: diff --git a/traefik/domain.go b/traefik/domain.go index 6c0eb65..3c45b9a 100644 --- a/traefik/domain.go +++ b/traefik/domain.go @@ -4,8 +4,8 @@ import "strings" // Domain holds a domain name with SANs. type Domain struct { - Main string - SANs []string + Main string `json:"Main"` + SANs []string `json:"SANs"` } // ToStrArray convert a domain into an array of strings.