Updated Go version
This commit is contained in:
parent
b065f56b8e
commit
3b6b87f223
9 changed files with 10 additions and 10 deletions
|
@ -20,7 +20,7 @@ func (s *Scanner) scanImport(file *fs.File, tokens token.List, i int) (int, erro
|
|||
packageName := tokens[i].Text(file.Bytes)
|
||||
|
||||
if file.Imports == nil {
|
||||
file.Imports = map[string]*fs.Import{}
|
||||
file.Imports = make(map[string]*fs.Import, 4)
|
||||
}
|
||||
|
||||
fullPath := filepath.Join(config.Library, packageName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue