imports returns true if f imports path.
(f *ast.File, path string)
| 284 | |
| 285 | // imports returns true if f imports path. |
| 286 | func imports(f *ast.File, path string) bool { |
| 287 | return importSpec(f, path) != nil |
| 288 | } |
| 289 | |
| 290 | // importSpec returns the import spec if f imports path, |
| 291 | // or nil otherwise. |