fix: lint errors

This commit is contained in:
Kevin Franklin Kim 2024-08-12 17:57:35 +02:00
parent 9dc2d50b34
commit d5873e4018
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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 {