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

Unpack typedef in structure editor #7528

Open
astrelsky opened this issue Feb 20, 2025 · 0 comments
Open

Unpack typedef in structure editor #7528

astrelsky opened this issue Feb 20, 2025 · 0 comments

Comments

@astrelsky
Copy link
Contributor

astrelsky commented Feb 20, 2025

It is sometimes easier to use the typedef type and then unpack instead of using the long, uncommonly used underlying structure name. In my case it is any instead of interface {} because it's also easier on the type parser and I don't need to wait for the type selection drop down to appear before hitting enter.

I figure this is pretty straightforward so I just nuked the template on my phone.

Edit: ok maybe there is a bug too because I can't unpack interface {} either even though it is a struct. No nevermind, it too is a typedef. I guess this shows my point 😂

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