You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, super cool library. I use the field alignment govet check, and it's a pain to figure out the optimal struct order manually. With gopium, I was able to get going in ~5 minutes.
The struct was successfully reordered to fix the govet field aligment check. However, gopium removed all comments from the struct field. It'd be nice to keep the documentation comments.
Other minor observations. Feel free to ignore. Including since sometimes it's helpful to hear about first-time usage:
It took me a while to figure out the correct invocation. The mix of positional commands like the walker and package and flag commands was confusing. I think flags alone might be easier to understand:
gopium \
--package_path=erp/integrate/gsheet \ # package path should probably be relative to $PWD
--struct_regexp='^InvoiceRow$' \
--strategies=memory_pack,strategy2
I had to use PWD to target the correct directory since gopium prepends src/.
The text was updated successfully, but these errors were encountered:
I support the author. Mashing comments to the fields of the structure for me is the very problem that prevents me from using this cool utility for my project. Thanks!
First off, super cool library. I use the field alignment govet check, and it's a pain to figure out the optimal struct order manually. With gopium, I was able to get going in ~5 minutes.
I ran the following command:
The struct was successfully reordered to fix the govet field aligment check. However, gopium removed all comments from the struct field. It'd be nice to keep the documentation comments.
Other minor observations. Feel free to ignore. Including since sometimes it's helpful to hear about first-time usage:
walker
andpackage
and flag commands was confusing. I think flags alone might be easier to understand:PWD
to target the correct directory since gopium prependssrc/
.The text was updated successfully, but these errors were encountered: