2 ms·
My goal is very much to reuse Go packages. It is somewhat working today. The underlying mechanism is when you type something like: import "github.com/pkg/e
by crawshaw 9y ago
My goal is very much to reuse Go packages. It is somewhat working today. The underlying mechanism is when you type something like:
import "github.com/pkg/errors"
A .go wrapper file is generated, a Go plugin is built, and then loaded into the ng executable. You can then use the errors package in the Neugram evaluator. Under the hood the lifting is done by the reflect package.
Very much my goal is when scripting, to use the os.Open and ioutil.ReadFile I know, along with filepath.Join, time.Now, and friends.