Major updates

Automatic type conversion
Support struct data
Custom error handler
This commit is contained in:
Lea Anthony
2020-08-31 20:00:39 +10:00
parent 0ab6a93e0c
commit 43a5f410d9
6 changed files with 139 additions and 20 deletions

View File

@@ -15,8 +15,7 @@ type Counter struct {
// WailsInit is called when the component is being initialised
func (c *Counter) WailsInit(runtime *wails.Runtime) error {
c.r = runtime
c.store = runtime.Store.New("Counter")
c.store.Set(0)
c.store = runtime.Store.New("Counter", 0)
return nil
}