前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
package errUtils func New(text string) error { return &errorStr{text} } type errorStr struct { str string } func (e *errorStr) Error() string { return e.str }