goplus / gop

The Go+ programming language is designed for engineering, STEM education, and data science. Our vision is to enable everyone to become a builder of the digital world.
https://goplus.org
Apache License 2.0
8.91k stars 546 forks source link

Support plugin mode for static importing go packages #387

Open xushiwei opened 4 years ago

xushiwei commented 4 years ago

Now we import a go package statically by add it into lib/default.go. However, it may expand very fast. So, we will support plugin mode for static importing go packages. The benefit of this feature is we don't need to rebuild qrun and qgo when we import go packages.

xushiwei commented 4 years ago

https://godoc.org/plugin

xushiwei commented 4 years ago

All Go+ plugin packages will be installed in:

~/.goplus/lib/<goPkgPath>.<goPluginExt>
damonchen commented 4 years ago

If goplus use the plugin for package support, how windows user to run the plugin?

It has some difficult for distributing goplus plugins in different platforms.