mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 12:15:02 -07:00
Misc lint fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user