-
structslop
structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I believe I have mentioned structslop just the other day when I have mentioned betteralign. Both fieldalignment (and original maligned) and structslop are great, but there are some smallish details that could be improved upon such as atomic I/O when rewriting source files, ability to skip test and/or generated files or even skip specific specific structs; and automatic GOMAXPROCS and GOMEMLIMIT tuneup when running under containers (such as in some CI pipeline). In any case, if you find this tool something that works for you, I would also appreciate if you could take a look at betteralign.
Official fieldalignment in short erases all comments, due to AST shortcomings when it comes to handling comments. Structslop uses DST (decorated AST) to workaround this problem and has somewhat slightly different algorithm of generated indexes to sort structs.