package dto type ErrorResponseDTO struct { Error string `json:"error"` } func NewError(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions? return &ErrorResponseDTO{err} }