catalog-service/src/internal/app/definition/error.go
Piotr Biernat 27b1f1fb35
Some checks failed
continuous-integration/drone/push Build is failing
:Huge REFACTORING
2022-11-29 22:40:58 +01:00

10 lines
150 B
Go

package definition
type ErrorResponse struct {
Error string `json:"error"`
}
func Error(err string) *ErrorResponse {
return &ErrorResponse{err}
}