keysd_rs 0.1.0

gPRC based keysd integration library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package patch

import "go/types"

type basicImporter struct {
	p *Patcher
}

// Import implements the types.Importer interface.
func (i basicImporter) Import(path string) (*types.Package, error) {
	return i.ImportFrom(path, "", 0)
}

// ImportFrom implements the types.ImporterFrom interface.
func (i basicImporter) ImportFrom(path, dir string, mode types.ImportMode) (*types.Package, error) {
	pkg := i.p.getPackage(path, "", true)
	return pkg.pkg, nil
}