Exemplo n.º 1
0
func (m gcimports) Import2(path, srcDir string, mode types.ImportMode) (*types.Package, error) {
	if mode != 0 {
		panic("mode must be 0")
	}
	return gcimporter.Import(m, path, srcDir)
}
Exemplo n.º 2
0
func (m gcimports) Import(path string) (*types.Package, error) {
	return gcimporter.Import(m, path)
}