5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:10:48 +08:00
wails/v3/examples/binding/GreetService.go
Lea Anthony 26530a0f5a Fix reserve word check.
Add model generation.
Warn if field is unexported in the Go struct
2023-03-07 19:48:30 +11:00

17 lines
247 B
Go

package main
type Person struct {
name string
}
type GreetService struct {
}
func (*GreetService) Greet(name string) string {
return "Hello " + name
}
func (*GreetService) GreetPerson(person Person) string {
return "Hello " + person.name
}