identity-service/internal/app/definition/error.go

10 lines
150 B
Go
Raw Normal View History

2022-06-19 15:19:05 +02:00
package definition
type ErrorResponse struct {
Error string `json:"error"`
}
func Error(err string) *ErrorResponse {
return &ErrorResponse{err}
}