Files

18 lines
380 B
Go
Raw Permalink Normal View History

2023-02-26 15:06:05 +11:00
package main
import "github.com/wailsapp/wails/v3/examples/binding/data"
2023-03-07 19:48:30 +11:00
// GreetService is a service that greets people
2023-02-26 15:06:05 +11:00
type GreetService struct {
}
// Greet greets a person
2023-02-26 15:06:05 +11:00
func (*GreetService) Greet(name string) string {
return "Hello " + name
}
2023-03-07 19:48:30 +11:00
// GreetPerson greets a person
func (*GreetService) GreetPerson(person data.Person) string {
return "Hello " + person.Name
2023-03-07 19:48:30 +11:00
}