err.go 165 字节
Newer Older
aaronchen2k2k's avatar
aaronchen2k2k 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
package errUtils

func New(text string) error {
	return &errorStr{text}
}

type errorStr struct {
	str string
}

func (e *errorStr) Error() string {
	return e.str
}