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

Config option for language version #234

Open
peterebden opened this issue Feb 13, 2024 · 1 comment
Open

Config option for language version #234

peterebden opened this issue Feb 13, 2024 · 1 comment

Comments

@peterebden
Copy link
Contributor

We currently don't have any way to indicate this - we basically run go tool compile without specifying a language version. This means there's no way of opting into features like the new for loop variable scoping. This is presumably going to continue to be a thing in future.

I think this is probably just a config field for the plugin, equivalent to the field in the go.mod file.

@peterebden
Copy link
Contributor Author

This may not be correct. On testing it looks like go tool compile is defaulting to its current version if not told otherwise - so we may not need to do anything to opt in (although arguably this would still be useful to hold back new features)

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

No branches or pull requests

1 participant