sourcegraph/goloader

Name: goloader

Owner: Sourcegraph

Description: golang.org/x/tools/go/loader but with a definable types.Importer

Created: 2017-05-26 18:49:03.0

Updated: 2018-02-27 04:24:56.0

Pushed: 2017-05-26 18:51:15.0

Homepage: null

Size: 31

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.