Error handling

Embed responses
This commit is contained in:
Michał Gdula 2025-02-28 21:14:08 +00:00
parent b93820e9d0
commit f3929f2665
6 changed files with 169 additions and 48 deletions

10
app/errors.go Normal file
View file

@ -0,0 +1,10 @@
package app
type Error struct {
Msg string
Err error
}
func (e *Error) Ok() bool {
return e.Err == nil
}