wip: custom logger and error handler

This commit is contained in:
2025-06-10 11:17:55 +01:00
parent 4935a65112
commit fae46f4bf7
7 changed files with 74 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
package types
import "fmt"
type Error struct {
Messages []string
Code int
}
func (err Error) Error() string {
return fmt.Sprintf("%v",
err.Messages)
}