Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
internal/poll: Changed error string breaks user application #19252
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
As far as I know, error strings are not under the Go1 compatibility contract. If your program depends on them, it might break in the future or not be portable at all (e.g. some
The way to do this in a portable and backwards/forwards compatible way is to check for error types, not error messages. Although that won't be possible if the package just uses