First implementation for two endpoints. #3
Annotations
10 errors
lint:
internal/app/handlers.go#L152
Error return value of `c.AbortWithError` is not checked (errcheck)
|
lint:
internal/app/middleware.go#L32
Error return value of `c.AbortWithError` is not checked (errcheck)
|
lint:
internal/app/middleware.go#L34
Error return value of `c.AbortWithError` is not checked (errcheck)
|
lint:
internal/db/db.go#L81
empty-block: this block is empty, you can remove it (revive)
|
lint:
internal/app/middleware.go#L12
unnecessary leading newline (whitespace)
|
lint:
internal/app/middleware.go#L40
unnecessary leading newline (whitespace)
|
lint:
internal/app/errors.go#L11
the type name `ErrorMsg` should conform to the `XxxError` format (errname)
|
lint:
internal/app/handlers_test.go#L18
testApp is a global variable (gochecknoglobals)
|
lint:
internal/app/handlers_test.go#L19
mock is a global variable (gochecknoglobals)
|
lint:
internal/db/mock.go#L10
ST1003: var mockDb should be mockDB (stylecheck)
|