Add linter 'gofumpt'

This commit is contained in:
Vasiliy Vasilyuk committed 2024-10-06 16:11:54 +03:00
1 parent 3bb9df005e
commit b7eb482b87
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -3,6 +3,7 @@ linters:
enable:
- errcheck
- godot
- gofumpt
- goimports
- gosimple
- govet
@@ -19,6 +20,8 @@ linters:
linters-settings:
goimports:
local-prefixes: github.com/xorcare/testing-go-code-with-postgres
gofumpt:
module-path: github.com/xorcare/testing-go-code-with-postgres
unused:
field-writes-are-uses: false
post-statements-are-reads: true
-1
View File
@@ -51,7 +51,6 @@ func (r *UserRepository) CreateUser(ctx context.Context, user User) error {
user.Username,
user.CreatedAt,
)
if err != nil {
const format = "failed insertion of User to database: %v"
return fmt.Errorf(format, err)