This commit is contained in:
PB
2022-12-18 20:51:26 +01:00
commit 40cc715898
11 changed files with 85 additions and 0 deletions

9
http/error.go Normal file
View File

@@ -0,0 +1,9 @@
package http
type ErrorResponse struct {
Error string `json:"error"`
}
func Error(err string) *ErrorResponse {
return &ErrorResponse{err}
}