orijtech / structslop

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Print field's type as legal Go syntax.

cuonglm opened this issue · comments

Currently, for struct like:

type s struct{
    Jump obj.As
    Index int
}

The warning message printed as:

struct{Jump cmd/internal/obj.As; Index int}

It should be:

struct{Jump obj.As; Index int}

instead.