Misc lint fixes

This commit is contained in:
Lea Anthony
2021-01-03 21:31:19 +11:00
parent e9a0e45d5c
commit 5d41aad539
6 changed files with 18 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/mac"
"log"
)
type Echo struct {
@@ -16,7 +17,7 @@ func (e *Echo) Echo(message string) string {
func main() {
// Create application with options
app := wails.CreateAppWithOptions(&options.App{
app, err := wails.CreateAppWithOptions(&options.App{
Title: "Runtime Tester!",
Width: 850,
Height: 620,
@@ -33,6 +34,10 @@ func main() {
},
})
if err != nil {
log.Fatal(err)
}
// You can also use the simplified call:
// app := wails.CreateApp("Tester!", 1024, 768)
@@ -50,5 +55,8 @@ func main() {
app.Bind(&Echo{})
app.Bind(&RuntimeTest{})
app.Run()
err = app.Run()
if err != nil {
log.Fatal(err)
}
}