Code review changes

This commit is contained in:
Gaurav Singh 2020-04-24 08:32:38 -04:00
parent 18a0ae5251
commit 77c359f7f7

View File

@ -399,7 +399,7 @@ func (b bodyGen) doStruct(sw *generator.SnippetWriter) error {
}
extras = append(extras, fmt.Sprintf("%s = %s", k, v))
}
sort.Strings(extras))
sort.Strings(extras)
if len(extras) > 0 {
fmt.Fprintf(out, " [")
fmt.Fprint(out, strings.Join(extras, ", "))