wails/v3/examples/binding/GreetService.go
2023-09-04 21:01:00 +10:00

19 lines
351 B
Go

package main
type Person struct {
name string
}
// GreetService is a service that greets people
type GreetService struct {
}
// Greet greets a person
func (*GreetService) Greet(name string) string {
return "Hello " + name
}
// GreetPerson greets a person
func (*GreetService) GreetPerson(person Person) string {
return "Hello " + person.name
}