Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors: example_test doesn't use errors package #16831

Closed
tortuoise opened this issue Aug 22, 2016 · 2 comments
Closed

errors: example_test doesn't use errors package #16831

tortuoise opened this issue Aug 22, 2016 · 2 comments

Comments

@tortuoise
Copy link

tortuoise commented Aug 22, 2016

The example in the errors package doesn't import or use the errors package.

The example illustrates how to implement the error interface but doesn't illustrate any feature of the errors package. If it's agreed the example isn't illustrative I'll attempt to claim the issue.

@bradfitz bradfitz added this to the Go1.8Maybe milestone Aug 22, 2016
@rakyll
Copy link
Contributor

rakyll commented Aug 24, 2016

It has an example for New, see https://golang.org/pkg/errors/#example_New.

I am not sure what else we can add, there is only New exported from the package.

@davecheney
Copy link
Contributor

I don't think there is anything that can be done here. errors.New has an example. I'm going to close this issue as WAI.

@golang golang locked and limited conversation to collaborators Aug 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants