We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now that host.Warnings has been moved into an internal package, how are we supposed to unwrap it?
host.Warnings
I used to do this, but my code quit working when I updated this library to the latest release today. ie. go get ./... in my project.
go get ./...
var warns *host.Warnings if !errors.As(err, &warns) { return fmt.Errorf("unable to get sensor temperatures: %w", err) } for i, w := range warns.List { fmt.Sprint("warning %v: %v", i+1, w) }
Re: #1347
The text was updated successfully, but these errors were encountered:
oh, unwrap... Yes, you are true. Then, I will make a PR about moving back Warnings to disk and host from common. Thank you so much!
disk
host
Sorry, something went wrong.
[disk][host]: move back Warnings from internal to disk and host.
4ac7e99
fix #1377
Successfully merging a pull request may close this issue.
Now that
host.Warnings
has been moved into an internal package, how are we supposed to unwrap it?I used to do this, but my code quit working when I updated this library to the latest release today. ie.
go get ./...
in my project.Re: #1347
The text was updated successfully, but these errors were encountered: