Files

37 lines
505 B
Go
Raw Permalink Normal View History

2023-02-25 09:47:50 +11:00
package main
import (
_ "embed"
"github.com/wailsapp/wails/v3/pkg/application"
"log"
)
// GreetService is great
type GreetService struct {
SomeVariable int
lowerCase string
}
// Greet someone
func (*GreetService) Greet(name string) string {
return "Hello " + name
}
func main() {
greetService := &GreetService{}
app := application.New(application.Options{
Bind: []interface{}{
greetService,
},
})
app.NewWebviewWindow()
err := app.Run()
if err != nil {
log.Fatal(err)
}
}