GitHub - orijtech/structslop: structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
  • structslop

    structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.

  • betteralign

    Make your Go programs use less memory (maybe)

    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.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • go

    The Go programming language

    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.

  • goimports

    [mirror] Go Tools (by golang)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts