app v5.0.0 Release Notes

Release Date: 2019-09-03 // about 1 year ago
  • app

    • ๐Ÿ“ฆ app package has been moved to pkg/app.
    • Component function associated to html events now take js values as argument.

      func(src, event js.Value)

    ๐Ÿ‘€ See CompoHandler

    • Messenger implementation has been added:

      func (h *Hello) OnMount() { app.Bind("click", h). Do(func() { // do something... }) }func (h *Hello) OnClick(s, e js.Value) { app.Emit("click") }

    • ๐Ÿšš Handle has been removed.

    • โšก๏ธ Package has be revamped to use syscall/js to update a page state rather than an intermediary javascript file.

    • ๐Ÿ‘ Single page application (SPA) routing support.

    goapp

    • goapp init now creates ready to use main.go files if they are nonexistent.

    โšก๏ธ how to update

    goapp update -v