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

playground: unable to use methods from errors package #41789

Closed
bynov opened this issue Oct 5, 2020 · 2 comments
Closed

playground: unable to use methods from errors package #41789

bynov opened this issue Oct 5, 2020 · 2 comments

Comments

@bynov
Copy link
Contributor

@bynov bynov commented Oct 5, 2020

What version of Go are you using (go version)?

Current go playground version - 1.14.8

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
Go playground

What did you do?

I've tried to use errors.Wrap, errors.As, errors.Is methods in playground but it seems like it doesn't work at all. Link: https://play.golang.org/p/G12jcrJOrts

What did you expect to see?

I've expected errors.* methods to work

What did you see instead?

It's not working :(

@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Oct 5, 2020

errors.Wrap is not defined for the stdlib: https://golang.org/pkg/errors/
perhaps you were thinking of the third part package? https://godoc.org/github.com/pkg/errors#Wrap

@bynov
Copy link
Contributor Author

@bynov bynov commented Oct 5, 2020

errors.Wrap is not defined for the stdlib: https://golang.org/pkg/errors/
perhaps you were thinking of the third part package? https://godoc.org/github.com/pkg/errors#Wrap

Oops, I've missed it. Thanks for explanation, we can close that issue (:

@mvdan mvdan closed this Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.