// 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. func New(text string) error { … } type errorString … func (e *errorString) Error() string { … } var ErrUnsupported …