From d5873e4018b84a3b1860a60c4cd74799fbe979b9 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Mon, 12 Aug 2024 17:57:35 +0200 Subject: [PATCH] fix: lint errors --- .golangci.yml | 1 - erm/template.go | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index dcfca7c..3be41d6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -153,7 +153,6 @@ linters: - errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and reports occations, where the check for the returned error can be omitted. [fast: false, auto-fix: false] #- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false] #- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false] - - execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds [fast: false, auto-fix: false] #- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false] #- exhaustruct # Checks if all structure fields are initialized [fast: false, auto-fix: false] - exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false] diff --git a/erm/template.go b/erm/template.go index 12610ac..5fea7ac 100644 --- a/erm/template.go +++ b/erm/template.go @@ -1,10 +1,11 @@ package erm import ( - "golang.org/x/text/cases" - "golang.org/x/text/language" "strings" "text/template" + + "golang.org/x/text/cases" + "golang.org/x/text/language" ) func getFuncMap() template.FuncMap {