Updated Go version
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user