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

fix: deprecation warning from README #144

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

tobb10001
Copy link
Contributor

When copying the example code from the README, gopls issues a deprecation warning, because parser.Parse is deprecated.

gopls-screenshot

This PR updates the README to use parser.ParseCtx instead, as it is suggested by the deprecation warning. It uses context.Background(), as it is used in parser.Parse() as well to make sure that the behaviour stays identical.

@smacker smacker merged commit ad63693 into smacker:master Feb 8, 2024
4 checks passed
@smacker
Copy link
Owner

smacker commented Feb 8, 2024

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants