Refactoring
This commit is contained in:
@@ -4,6 +4,6 @@ type ErrorResponseDTO struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
|
||||
func NewError(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
|
||||
return &ErrorResponseDTO{err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user