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

x/tools/gopls: explore UX of fillstruct for partially populated nested structs #42818

jadekler opened this issue Nov 24, 2020 · 0 comments


Copy link

@jadekler jadekler commented Nov 24, 2020

Continuation of #39804, in which in cl262018 we introduce basic support for partially filled structs: how should this work for nested structs? Should all levels of the nested structs populate? Or only one level? If one level, which level, when the cursor is between two of the nested struct levels, like,

f := Foo{
  Bar: {}, // cursor is on the closing bracket: fill Foo, or Bar, or both?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants