5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 08:10:56 +08:00
wails/v3/internal/parser/testdata/struct_literal_multiple/main.go
2023-02-21 17:10:36 +11:00

42 lines
526 B
Go

package main
import (
_ "embed"
"log"
"github.com/wailsapp/wails/v3/pkg/application"
)
type GreetService struct {
SomeVariable int
lowerCase string
}
func (*GreetService) Greet(name string) string {
return "Hello " + name
}
type OtherService struct {
t int
}
func (o *OtherService) Hello() {}
func main() {
app := application.New(application.Options{
Bind: []interface{}{
&GreetService{},
&OtherService{},
},
})
app.NewWebviewWindow()
err := app.Run()
if err != nil {
log.Fatal(err)
}
}