errors.New()
func New(text string) error
New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical.
New返回一个错误,其格式为给定的文本。对New的每次调用都会返回一个不同的错误值,即使文本是相同的。
func New(text string) error
New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical.
New返回一个错误,其格式为给定的文本。对New的每次调用都会返回一个不同的错误值,即使文本是相同的。