Update vanilla template with new API

This commit is contained in:
Lea Anthony
2021-01-26 06:40:18 +11:00
parent 5e1187f437
commit 02500e0930

View File

@@ -2,14 +2,21 @@ package main
import (
"github.com/wailsapp/wails/v2"
"log"
)
func main() {
// Create application with options
app := wails.CreateApp("{{.ProjectName}}", 1024, 768)
app, err := wails.CreateApp("{{.ProjectName}}", 1024, 768)
if err != nil {
log.Fatal(err)
}
app.Bind(newBasic())
app.Run()
err = app.Run()
if err != nil {
log.Fatal(err)
}
}