File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ func (i *importer) queryImports(filename string) fileImports {
309
309
}
310
310
}
311
311
}
312
- if strings .HasPrefix (q .Ret .Type (), name ) {
312
+ retType := strings .TrimPrefix (q .Ret .Type (), "[]" )
313
+ if strings .HasPrefix (retType , name ) {
313
314
return true
314
315
}
315
316
}
@@ -322,7 +323,8 @@ func (i *importer) queryImports(filename string) fileImports {
322
323
}
323
324
}
324
325
}
325
- if strings .HasPrefix (q .Arg .Type (), name ) {
326
+ argType := strings .TrimPrefix (q .Arg .Type (), "[]" )
327
+ if strings .HasPrefix (argType , name ) {
326
328
return true
327
329
}
328
330
}
@@ -414,7 +416,8 @@ func (i *importer) batchImports(filename string) fileImports {
414
416
}
415
417
}
416
418
}
417
- if strings .HasPrefix (q .Ret .Type (), name ) {
419
+ retType := strings .TrimPrefix (q .Ret .Type (), "[]" )
420
+ if strings .HasPrefix (retType , name ) {
418
421
return true
419
422
}
420
423
}
@@ -427,7 +430,8 @@ func (i *importer) batchImports(filename string) fileImports {
427
430
}
428
431
}
429
432
}
430
- if strings .HasPrefix (q .Arg .Type (), name ) {
433
+ argType := strings .TrimPrefix (q .Arg .Type (), "[]" )
434
+ if strings .HasPrefix (argType , name ) {
431
435
return true
432
436
}
433
437
}
You can’t perform that action at this time.
0 commit comments