Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DeleteNamedImport (0.13 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    func DeleteImport(fset *token.FileSet, f *ast.File, path string) (deleted bool) {
    	return DeleteNamedImport(fset, f, "", path)
    }
    
    // DeleteNamedImport deletes the import with the given name and path from the file f, if present.
    // If there are duplicate import declarations, all matching ones are deleted.
    func DeleteNamedImport(fset *token.FileSet, f *ast.File, name, path string) (deleted bool) {
    	var delspecs []*ast.ImportSpec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
Back to top