func importSpec(f *ast.File, path string) *ast.ImportSpec {
	for _, s := range f.Imports {
		if importPath(s) == path {
			return s
		}
	}
	return nil
}
func importSpec(f *ast.File, path string) *ast.ImportSpec {
	for _, s := range f.Imports {
		if importPath(s) == path {
			return s
		}
	}
	return nil
}
func importSpec ( f * ast . File , path string ) * ast . ImportSpec { for _ , s := range f . Imports { if importPath ( s ) == path { return s } } return nil }
// importSpec returns the import spec if f imports path,
// or nil otherwise.
importSpec returns the import spec if f imports path or nil otherwise .