Giter Site home page Giter Site logo

Comments (1)

cosmos72 avatar cosmos72 commented on May 13, 2024

Implemented in commit 568bd2e

The REPL command :unload PACKAGE-PATH will remove an imported package from the list of known packages, so that importing it again will recompile it as a plugin, pulling in any updates in the package.

Note: :unload will not remove the package from the current scope, i.e. if you imported it you can still use it.

Just remember to use the full PACKAGE-PATH, not only it name. Example:

gomacro> import "gonum.org/v1/plot"
// debug: created file "/home/max/go/src/gomacro_imports/gonum.org/v1/plot/plot.go"...
// debug: compiling "/home/max/go/src/gomacro_imports/gonum.org/v1/plot/plot.go" ...
gomacro> plot
{plot "gonum.org/v1/plot", 5 binds, 17 types}	// fast.Import
gomacro> :unload gonum.org/v1/plot
// debug: unloaded package "gonum.org/v1/plot". attempts to import it again may trigger a reload
gomacro> import "gonum.org/v1/plot"
// debug: created file "/home/max/go/src/gomacro_imports/gonum.org/v1/plot/plot.go"...
// debug: compiling "/home/max/go/src/gomacro_imports/gonum.org/v1/plot/plot.go" ...
// warning: redefined identifier: plot

from gomacro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.