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