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