Struct field reordering for memory optimization
In VSCode with gopls they've got something called “suggested fixes” and one of the features of that is it informs the programmer if the fields of a struct are not ordered in a memory-optimal way and offers to automatically fix the ordering.
Is it possible to have such a feature in Goland? Or if it already exists how do we enable it?
Please sign in to leave a comment.
Hi there! Thank you for your question. I'm afraid there is no such functionality at the moment, however, I've raised a feature request on your behalf. Please follow it here - GO-17703. I can't promise any changes implemented, but this will be looked into and discussed.
Please let us know if any additional questions come up and I'll do my best to assist.