Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ImportSpec (0.11 sec)

  1. src/cmd/go/internal/load/pkg.go

    		}
    		return data.p, data.err
    	})
    
    	return p, loaded, err
    }
    
    // importSpec describes an import declaration in source code. It is used as a
    // cache key for resolvedImportCache.
    type importSpec struct {
    	path                              string
    	parentPath, parentDir, parentRoot string
    	parentIsStd                       bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    The import names an identifier (PackageName) to be used for access and an ImportPath
    that specifies the package to be imported.
    </p>
    
    <pre class="ebnf">
    ImportDecl       = "import" ( ImportSpec | "(" { ImportSpec ";" } ")" ) .
    ImportSpec       = [ "." | PackageName ] ImportPath .
    ImportPath       = string_lit .
    </pre>
    
    <p>
    The PackageName is used in <a href="#Qualified_identifiers">qualified identifiers</a>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top