refactor: pkgName -> moduleName
parent
f6471ab9d6
commit
a030fec81f
|
@ -144,12 +144,11 @@ func (ft *Formatter) formatFile(path string) error {
|
||||||
}
|
}
|
||||||
ft.log("importsAST: %+v\n", importsAST)
|
ft.log("importsAST: %+v\n", importsAST)
|
||||||
|
|
||||||
// TODO: Find dir go.mod package name
|
moduleName, err := ft.moduleName(path)
|
||||||
pkgName, err := ft.moduleName(path)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
ft.log("pkgName: %+v\n", pkgName)
|
ft.log("moduleName: %+v\n", moduleName)
|
||||||
|
|
||||||
groupImports, err := ft.groupImports(importsAST)
|
groupImports, err := ft.groupImports(importsAST)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue