common/logger/type.go

18 lines
222 B
Go
Raw Permalink Normal View History

2023-07-02 02:57:36 +00:00
package logger
type Error struct {
Msg string
Data []any
}
func NewError(msg string, data ...any) *Error {
return &Error{
Msg: msg,
Data: data,
}
}
func (e *Error) Error() string {
return "not implemented"
}