Skip to content
This repository has been archived by the owner. It is now read-only.
golang.org/x/tools/go/loader but with a definable types.Importer
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata
AUTHORS
CONTRIBUTORS
LICENSE
PATENTS
README.md
cgo.go
cgo_pkgconfig.go
doc.go
example_test.go
loader.go
loader_test.go
stdlib_test.go
util.go

README.md

goloader

A fork of golang.org/x/tools/go/loader but with support for choosing the types.Importer that is used.

Why?

By default, go/loader uses it's own internal implementation of types.Importer which loads all information by reading Go source files from disk and then performing type-checking. This can be quite slow, because it includes transitive dependencies. For writing things such as editor plugins, this isn't suitable.

You can’t perform that action at this time.