|
|
@ -181,8 +181,8 @@ func (cfg *Config) process() (code []byte, err error) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Generate and format the output.
|
|
|
|
// Generate and format the output. Formatting uses goimports because it
|
|
|
|
// Use goimports to format the source because it separates imports.
|
|
|
|
// removes unused imports.
|
|
|
|
code = genPackage(mtyp) |
|
|
|
code = genPackage(mtyp) |
|
|
|
opt := &imports.Options{Comments: true, TabIndent: true, TabWidth: 8} |
|
|
|
opt := &imports.Options{Comments: true, TabIndent: true, TabWidth: 8} |
|
|
|
code, err = imports.Process("", code, opt) |
|
|
|
code, err = imports.Process("", code, opt) |
|
|
|